Skip to content

Commit

Permalink
clear outbox if cc doesn't reconnect after 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
fechan committed May 16, 2024
1 parent 591fb66 commit 57ba430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ function queueRequestForCCForLater(request: Request, session: Session) {
};
session.editor.send(JSON.stringify(failResponse));

session.editorOutbox = [];

session.editor.close();
}, 10 * 1000);
}
Expand Down

0 comments on commit 57ba430

Please sign in to comment.