Skip to content

Commit

Permalink
fix: invalid async await
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatz committed Aug 1, 2024
1 parent 8efd6f7 commit c27840d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ async function startServer(socketPath: string) {
log("socket ended");
rl.close();
});
socket.on("close", async () => {
socket.on("close", () => {
log("socket closed");
intervalId = setInterval(() => {
intervalId = setInterval(async () => {
if (!fs.existsSync(socketPath)) {
log("socket file lost. server restarting...");
if (intervalId !== null) {
Expand Down

0 comments on commit c27840d

Please sign in to comment.