mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-03 09:03:48 +00:00
Added ability to specify timeoutAutoAccept on windows user consent
This commit is contained in:
@@ -206,7 +206,14 @@ function CENTER(w, cx, cw)
|
||||
}
|
||||
function pump_onTimeout(pump)
|
||||
{
|
||||
pump.promise.reject('TIMEOUT');
|
||||
if (pump.options.timeoutAutoAccept == true)
|
||||
{
|
||||
pump.promise.resolve(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
pump.promise.reject('TIMEOUT');
|
||||
}
|
||||
pump.close();
|
||||
}
|
||||
function pump_onExit()
|
||||
|
||||
Reference in New Issue
Block a user