mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-27 12:45:46 +01:00
Add timeout arg to util.waitFor.
--HG-- branch : key-processing
This commit is contained in:
@@ -916,7 +916,7 @@ var Events = Module("events", {
|
||||
let start = Date.now();
|
||||
let end = start + (maxWaitTime * 1000);
|
||||
|
||||
util.waitFor(function () !events.feedingKeys || buffer.loaded || Date.now() > end);
|
||||
util.waitFor(function () !events.feedingKeys || buffer.loaded, this, maxWaitTime);
|
||||
commandline.clear();
|
||||
|
||||
if (!buffer.loaded)
|
||||
|
||||
Reference in New Issue
Block a user