Skip to content

Commit

Permalink
fix DiscordWS send loop
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Dec 5, 2024
1 parent 4d20173 commit 4adb1d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DiscordGateway/DiscordWS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ const make = Effect.gen(function* () {
if (message === Reconnect) {
;(fiber as any).log(["Reconnecting"], Cause.empty, logLevelTrace)
yield* write(new Socket.CloseEvent(1012, "reconnecting"))
return
} else {
;(fiber as any).log([message], Cause.empty, logLevelTrace)
yield* write(encoding.encode(message))
}
;(fiber as any).log([message], Cause.empty, logLevelTrace)
yield* write(encoding.encode(message))
}
}).pipe(
Effect.annotateLogs("channel", "outbound"),
Expand Down

0 comments on commit 4adb1d8

Please sign in to comment.