From 0691bca6d1f59a61ac30938363e437da034e9c47 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 20 May 2018 19:12:29 +0200 Subject: chex --- rpc/rpc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpc/rpc.py') diff --git a/rpc/rpc.py b/rpc/rpc.py index 4e87263..a375302 100644 --- a/rpc/rpc.py +++ b/rpc/rpc.py @@ -44,8 +44,8 @@ class CortexRPC(object): return "working" path = os.getenv('TEST_FRAMES_PATH') onlyfiles = sorted([f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]) - self.fetching = True + for f in onlyfiles: gevent.sleep(1/30) output = BytesIO() @@ -55,6 +55,8 @@ class CortexRPC(object): frame = output.getvalue() output.close() self.send_frame(f.replace('png', 'jpg'), frame) + + self.fetching = False return "ok" def send_param(self, key, value): -- cgit v1.2.3-70-g09d2