Skip to content

Commit 4c8f1c2

Browse files
committed
add 10 * think mode time for sync mode
1 parent 5345ed4 commit 4c8f1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Base/Server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run(self):
140140
start_time_cycle = time.time()
141141

142142
self.receive_action = 0
143-
while (Conf.sync_mode and self.receive_action < Conf.agent_numbers) \
143+
while (Conf.sync_mode and (self.receive_action < Conf.agent_numbers or time.time() - start_time_cycle < Conf.think_time * 10)) \
144144
or (not Conf.sync_mode and time.time() - start_time_cycle < Conf.think_time):
145145
try:
146146
msg = self.action_queue.get(block=True, timeout=0.001)

0 commit comments

Comments
 (0)