summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-23 15:54:02 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-24 11:09:12 +0100
commit23ccce8d0af156de8658af310139b3aacb9cb889 (patch)
tree0c07c66c3c7fae24c7ab0b93e9535c1ba076a25f
parenta343a885e0f7dc34f741e781045fd14e91695b44 (diff)
downloadmorph-23ccce8d0af156de8658af310139b3aacb9cb889.tar.gz
distbuild: Fix crash when worker disconnects
Bad function prototype meant that the mechanism for handling workers disconnecting actually caused the controller to crash instead. Change-Id: I8ceb6ad027ba2481c0c4c335e1760692823c208b
-rw-r--r--distbuild/worker_build_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distbuild/worker_build_scheduler.py b/distbuild/worker_build_scheduler.py
index 758e84b2..e5548ad4 100644
--- a/distbuild/worker_build_scheduler.py
+++ b/distbuild/worker_build_scheduler.py
@@ -390,7 +390,7 @@ class WorkerBuildQueuer(distbuild.StateMachine):
self.mainloop.queue_event(worker.who, _HaveAJob(job))
- def _handle_worker_disconnected(self, event):
+ def _handle_worker_disconnected(self, event_source, event):
self._remove_worker(self, event.who)
def _remove_worker(self, worker):