Commit f43db0d6 authored by Denis Bilenko's avatar Denis Bilenko

Semaphore: add _start_notify() method

parent e15e0d08
......@@ -33,6 +33,9 @@ class Semaphore(object):
def release(self):
self.counter += 1
self._start_notify()
def _start_notify(self):
if self._links and self.counter > 0 and not self._notifier.active:
self._notifier.start(self._notify_links)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment