Commit f8f16e13 authored by Yusei Tahara's avatar Yusei Tahara Committed by Klaus Wölfel

erp5/util/testnode: iterate through a copy of the given set, this set is modified in the for loop.

parent 59bd8c93
......@@ -221,7 +221,7 @@ class ProcessManager(object):
self.under_cancellation = True
for timer in self.timer_set:
timer.cancel()
for pgpid in self.process_pid_set:
for pgpid in tuple(self.process_pid_set):
killCommand(pgpid)
try:
pid_file = self.supervisord_pid_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment