Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
a5eff0d
1
Parent(s):
b953cf8
main.py
CHANGED
@@ -276,8 +276,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
276 |
# Process immediately if interesting
|
277 |
if is_interesting:
|
278 |
print(f"[{current_time:.3f}] Found interesting input (skipped {skipped} events)")
|
279 |
-
|
280 |
-
return
|
281 |
|
282 |
# Otherwise, continue to the next item
|
283 |
skipped += 1
|
@@ -285,8 +284,8 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
285 |
# If this is the last item and no interesting inputs were found
|
286 |
if input_queue.empty():
|
287 |
print(f"[{current_time:.3f}] No interesting inputs, processing latest movement (skipped {skipped-1} events)")
|
288 |
-
|
289 |
-
|
290 |
|
291 |
while True:
|
292 |
try:
|
|
|
276 |
# Process immediately if interesting
|
277 |
if is_interesting:
|
278 |
print(f"[{current_time:.3f}] Found interesting input (skipped {skipped} events)")
|
279 |
+
process_input(current_input)
|
|
|
280 |
|
281 |
# Otherwise, continue to the next item
|
282 |
skipped += 1
|
|
|
284 |
# If this is the last item and no interesting inputs were found
|
285 |
if input_queue.empty():
|
286 |
print(f"[{current_time:.3f}] No interesting inputs, processing latest movement (skipped {skipped-1} events)")
|
287 |
+
process_input(latest_input)
|
288 |
+
is_processing = False
|
289 |
|
290 |
while True:
|
291 |
try:
|