Skip to content

Commit

Permalink
fix(route): mark handled status immediately (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike authored Jul 14, 2022
1 parent f487525 commit a36b0ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/WS/route/Route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ export default class Route {
*/
startHandling() {
return new Promise<boolean>((resolve) => {
this.handleResolve = resolve;
}).finally(() => {
this.handleResolve = null;
this.handleResolve = (done) => {
this.handleResolve = null;
resolve(done);
};
});
}

Expand Down

0 comments on commit a36b0ec

Please sign in to comment.