Skip to content

Commit a2b4b03

Browse files
committed
sync_et_to_cam: logic to avoid race condition with GUI is now moves to the GUI
1 parent 10a53b6 commit a2b4b03

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/gazeMapper/process/sync_et_to_cam.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pathlib
2-
import time
32
import numpy as np
43
import pandas as pd
54
import polars as pl
@@ -111,8 +110,6 @@ def do_the_work(working_dir: pathlib.Path, config_dir: pathlib.Path, gui: GUI, *
111110
has_requested_focus = not isMacOS # False only if on Mac OS, else True since its a no-op
112111
ival = 0
113112
need_to_load = True
114-
while not gui.is_started:
115-
time.sleep(0.01)
116113
while True:
117114
if not has_requested_focus:
118115
AppKit.NSApplication.sharedApplication().activateIgnoringOtherApps_(1)

0 commit comments

Comments
 (0)