mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
preserve declarations
This commit is contained in:
parent
3758744eb6
commit
0b6ca8e77b
@ -114,7 +114,7 @@ class State:
|
|||||||
time_start = None
|
time_start = None
|
||||||
server_start = None
|
server_start = None
|
||||||
_server_command_signal = threading.Event()
|
_server_command_signal = threading.Event()
|
||||||
_server_command: Optional[str]
|
_server_command: Optional[str] = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def need_restart(self) -> bool:
|
def need_restart(self) -> bool:
|
||||||
@ -139,7 +139,7 @@ class State:
|
|||||||
self._server_command = value
|
self._server_command = value
|
||||||
self._server_command_signal.set()
|
self._server_command_signal.set()
|
||||||
|
|
||||||
def wait_for_server_command(self, timeout: Optional[float]) -> Optional[str]:
|
def wait_for_server_command(self, timeout: Optional[float] = None) -> Optional[str]:
|
||||||
"""
|
"""
|
||||||
Wait for server command to get set; return and clear the value and signal.
|
Wait for server command to get set; return and clear the value and signal.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user