- commit
- cba68600f4760b5d3ac6870ae35dae2c8e2ffa3d
- parent
- b693328517039cc4f22f3a23efb26dcac0a8cae9
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-09-05 14:37
perf: rm timeout on select when idle
Diffstat
| M | cplay.py | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/cplay.py b/cplay.py
@@ -681,12 +681,13 @@ class Application: 681 681 while True: 682 682 player.finish_seek() 683 683 -1 684 timeout = 0.5 if player.is_playing() else None 684 685 try: 685 686 r, _w, _e = select.select([ 686 687 sys.stdin, 687 688 self.resize_in, 688 689 player.stderr_r,689 -1 ], [], [], 0.5)-1 690 ], [], [], timeout) 690 691 except select.error: 691 692 continue 692 693