Fixed missing loop bug
This commit is contained in:
11
main.py
11
main.py
@@ -62,11 +62,12 @@ def main() -> None:
|
|||||||
|
|
||||||
diskPollThread.start()
|
diskPollThread.start()
|
||||||
|
|
||||||
try:
|
while True:
|
||||||
event = diskEventQueue.get_nowait()
|
try:
|
||||||
print(event)
|
event = diskEventQueue.get_nowait()
|
||||||
except Empty:
|
print(event)
|
||||||
sleep(1)
|
except Empty:
|
||||||
|
sleep(1)
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
stopEvent.set()
|
stopEvent.set()
|
||||||
|
|||||||
Reference in New Issue
Block a user