We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5345ed4 commit 4c8f1c2Copy full SHA for 4c8f1c2
src/Base/Server.py
@@ -140,7 +140,7 @@ def run(self):
140
start_time_cycle = time.time()
141
142
self.receive_action = 0
143
- while (Conf.sync_mode and self.receive_action < Conf.agent_numbers) \
+ while (Conf.sync_mode and (self.receive_action < Conf.agent_numbers or time.time() - start_time_cycle < Conf.think_time * 10)) \
144
or (not Conf.sync_mode and time.time() - start_time_cycle < Conf.think_time):
145
try:
146
msg = self.action_queue.get(block=True, timeout=0.001)
0 commit comments