+10
-4
lines changedFilter options
+10
-4
lines changed Original file line number Diff line number Diff line change
@@ -114,12 +114,18 @@ export function queueJob(job: SchedulerJob): void {
114
114
}
115
115
}
116
116
117
+
const doFlushJobs = () => {
118
+
try {
119
+
flushJobs()
120
+
} catch (e) {
121
+
currentFlushPromise = null
122
+
throw e
123
+
}
124
+
}
125
+
117
126
function queueFlush() {
118
127
if (!currentFlushPromise) {
119
-
currentFlushPromise = resolvedPromise.then(flushJobs).catch(e => {
120
-
currentFlushPromise = null
121
-
throw e
122
-
})
128
+
currentFlushPromise = resolvedPromise.then(doFlushJobs)
123
129
}
124
130
}
125
131
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4