We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04bd6d3 commit d8f1c88Copy full SHA for d8f1c88
nicegui/native/native_mode.py
@@ -1,7 +1,6 @@
1
from __future__ import annotations
2
3
import _thread
4
-import multiprocessing
5
import multiprocessing as mp
6
import queue
7
import socket
@@ -93,8 +92,8 @@ def window_method_executor() -> None:
93
92
except Exception:
94
log.exception(f'error in window.{method_name}')
95
# NOTE: we need to cleanup the multiprocessing queues, see https://github.com/zauberzeug/nicegui/issues/4131
96
- if hasattr(multiprocessing.util, '_exit_function'): # to make mypy happy
97
- multiprocessing.util._exit_function() # pylint: disable=protected-access
+ if hasattr(mp.util, '_exit_function'): # to make mypy happy
+ mp.util._exit_function() # pylint: disable=protected-access
98
99
Thread(target=window_method_executor).start()
100
0 commit comments