diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-20 19:12:29 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-20 19:12:29 +0200 |
| commit | 0691bca6d1f59a61ac30938363e437da034e9c47 (patch) | |
| tree | 26673994c03edc9ec8ab45a6f51a08934a150798 /rpc | |
| parent | 67158e2a53c4eb50364c42055690f95e650dcc48 (diff) | |
chex
Diffstat (limited to 'rpc')
| -rw-r--r-- | rpc/rpc.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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): |
