Merge pull request #857 from tahoe-lafs/3470.oneshotobserverlist-immediately

Make OneShotObserverList immediate

Fixes: ticket:3470
This commit is contained in:
Jean-Paul Calderone 2020-10-15 17:37:31 -04:00 committed by GitHub
commit 99fe617069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

0
newsfragments/3470.minor Normal file
View File

View 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