File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/robocorp_code/inspector/java/robocorp_java Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ dependencies:
1515 - robocorp-inspector==0.10.2 # https://github.com/robocorp/inspector/blob/master/CHANGELOG.md
1616 - robotframework==5.0.1 # https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-5.0.1.rst
1717 - playwright==1.37.0
18+ - java-access-bridge-wrapper=="1.1.0"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def __init__(
2121 # Jab wrapper needs to be part of the thread that pumps the window events
2222 self ._jab_wrapper : JavaAccessBridgeWrapper = None
2323 self ._future : futures .Future = futures .Future ()
24- self ._quit_queue_loop = threading .Event ()
24+ self ._quit_event_loop = threading .Event ()
2525
2626 def _pump_background (self ) -> bool :
2727 try :
@@ -48,9 +48,10 @@ def run(self) -> None:
4848 if platform .system () != "Windows" :
4949 return
5050
51+ # Raise the error to the main thread from here
5152 self ._jab_wrapper = JavaAccessBridgeWrapper (ignore_callbacks = True )
5253 self ._future .set_result (self ._jab_wrapper )
53- while not self ._quit_queue_loop .is_set ():
54+ while not self ._quit_event_loop .is_set ():
5455 # The pump is non blocking. If the is no message in the queue
5556 # wait for 10 milliseconds until check again to prevent too
5657 # fast loop.
@@ -59,7 +60,7 @@ def run(self) -> None:
5960 time .sleep (0.01 )
6061
6162 def stop (self ):
62- self ._quit_queue_loop .set ()
63+ self ._quit_event_loop .set ()
6364 self ._jab_wrapper = None
6465 if not self ._future .done ():
6566 self ._future .cancel ()
You can’t perform that action at this time.
0 commit comments