mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 21:30:42 +00:00
fix(feishu): keep comment replay closed after generic failures
This commit is contained in:
@@ -5,11 +5,12 @@ export function createSequentialQueue() {
|
||||
const previous = queues.get(key) ?? Promise.resolve();
|
||||
const next = previous.then(task, task);
|
||||
queues.set(key, next);
|
||||
void next.finally(() => {
|
||||
const cleanup = () => {
|
||||
if (queues.get(key) === next) {
|
||||
queues.delete(key);
|
||||
}
|
||||
});
|
||||
};
|
||||
next.then(cleanup, cleanup);
|
||||
return next;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user