aboutsummaryrefslogtreecommitdiff
path: root/resource_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'resource_manager.py')
-rw-r--r--resource_manager.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/resource_manager.py b/resource_manager.py
index 8aa4fb8..8dcf6bc 100644
--- a/resource_manager.py
+++ b/resource_manager.py
@@ -54,12 +54,15 @@ class ResourceManagerBase(object):
def get_answer(self):
data = self.receive_message()
+ notifications = []
while not data.answer:
if data.notify:
- self.handle_notification(data.notify)
+ notifications.append(data.notify)
else:
raise AssertionError('Unknown response')
data = self.receive_message()
+ for notification in notifications:
+ self.handle_notification(notification)
return data.answer
def handle_notification(self, notification):