This commit is contained in:
Tomas Groth 2018-07-05 22:43:55 +02:00
parent ac14c0186d
commit 4dd16d1bd6
1 changed files with 1 additions and 1 deletions

View File

@ -1126,7 +1126,7 @@ class SlideController(DisplayController, LogMixin, RegistryProperties):
# done by the thread holding the lock. If it is a "start" slide, we must wait for the lock, but only for 0.2
# seconds, since we don't want to cause a deadlock
timeout = 0.2 if start else -1
if not self.slide_selected_lock.acquire(start, timeout): # pylint: disable=too-many-function-args
if not self.slide_selected_lock.acquire(start, timeout): # pylint: disable=too-many-function-args
if start:
self.log_debug('Could not get lock in slide_selected after waiting %f, skip to avoid deadlock.'
% timeout)