diff options
Diffstat (limited to 'distbuild/build_controller.py')
-rw-r--r-- | distbuild/build_controller.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py index e38b25b7..0a3bd8a8 100644 --- a/distbuild/build_controller.py +++ b/distbuild/build_controller.py @@ -296,7 +296,8 @@ class BuildController(distbuild.StateMachine): def _request_command_execution(self, argv, request_id): '''Tell the controller's distbuild-helper to run a command.''' - if self.mainloop.n_state_machines_of_type(distbuild.HelperRouter) == 0: + hrs = self.mainloop.state_machines_of_type(distbuild.HelperRouter) + if len(hrs) == 0: self.fail('No distbuild-helper process running on controller!') msg = distbuild.message('exec-request', |