From f82ca77348bb8e025240bab1003ae697e27617e2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 27 May 2018 04:07:19 +0200 Subject: responding to pings --- test/module/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/module/test.py b/test/module/test.py index e78f932..9a20345 100755 --- a/test/module/test.py +++ b/test/module/test.py @@ -1,4 +1,4 @@ -import time +import gevent import importlib.util spec = importlib.util.spec_from_file_location("CortexRPC", "../../rpc/rpc.py") rpc_module = importlib.util.module_from_spec(spec) @@ -23,7 +23,7 @@ if __name__ == '__main__': while 1: print('{}...'.format(i)) i = i+1 - time.sleep(1) + gevent.sleep(1) return 'ready' def process_cmd(cmd, payload): -- cgit v1.2.3-70-g09d2