From 23ccce8d0af156de8658af310139b3aacb9cb889 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 23 Jun 2015 15:54:02 +0100 Subject: 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 --- distbuild/worker_build_scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.1