From 50b11fff028222d4c1de73378286db49978e1fe5 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Sat, 25 Jun 2016 14:14:55 +0800 Subject: [PATCH] wait longer to keep safe --- db_transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_transfer.py b/db_transfer.py index 05bb31a..0da6fe4 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -181,7 +181,7 @@ class DbTransfer(object): if len(new_servers) > 0: from shadowsocks import eventloop - self.event.wait(eventloop.TIMEOUT_PRECISION) + self.event.wait(eventloop.TIMEOUT_PRECISION + eventloop.TIMEOUT_PRECISION / 2) for port in new_servers.keys(): passwd, cfg = new_servers[port] logging.info('db start server at port [%s] pass [%s]' % (port, passwd))