change timeout for waiting hwnd

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-06 17:33:47 +08:00
parent 37d21d8db0
commit fdeb38fee7

View File

@ -245,7 +245,7 @@ pub fn start() -> ResultType<()> {
wnd_handlers.hthread = proc_info.hThread as _; wnd_handlers.hthread = proc_info.hThread as _;
wnd_handlers.hprocess = proc_info.hProcess as _; wnd_handlers.hprocess = proc_info.hProcess as _;
let hwnd = wait_find_privacy_hwnd(30_000)?; let hwnd = wait_find_privacy_hwnd(1_000)?;
if hwnd.is_null() { if hwnd.is_null() {
bail!("Failed to get hwnd after started"); bail!("Failed to get hwnd after started");
} }