Skip to content

Commit

Permalink
feedback from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Dec 9, 2024
1 parent 277a5ad commit c902746
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/devtools/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ export function startServer(port: number) {
if (serverState.port === port) {
// nothing to do
return;
} else {
// changing port, stop the old server
serverState.disposable.dispose();
}
// changing port, stop the old server
serverState.disposable.dispose();
}
serverState = state;
let wss: WebSocketServer | null = new WebSocketServer({ port });
Expand Down

0 comments on commit c902746

Please sign in to comment.