mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-22 14:22:25 +00:00
Merge pull request #857 from tahoe-lafs/3470.oneshotobserverlist-immediately
Make OneShotObserverList immediate Fixes: ticket:3470
This commit is contained in:
commit
99fe617069
0
newsfragments/3470.minor
Normal file
0
newsfragments/3470.minor
Normal file
@ -61,7 +61,7 @@ class OneShotObserverList(object):
|
|||||||
|
|
||||||
def _fire(self, result):
|
def _fire(self, result):
|
||||||
for w in self._watchers:
|
for w in self._watchers:
|
||||||
eventually(w.callback, result)
|
w.callback(result)
|
||||||
del self._watchers
|
del self._watchers
|
||||||
self.__repr__ = self._fired_repr
|
self.__repr__ = self._fired_repr
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user