Skip to content

Commit

Permalink
Fixed parser issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Feb 5, 2022
1 parent 54af556 commit 2c5afc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions IHP/WebSocket.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ startWSApp connection = do
let ?connection = connection

let runWithPongChan pongChan = do
let connectionOnPong = writeChan pongChan ()
let ?connection = connection
{ WebSocket.connectionOptions = (get #connectionOptions connection) { WebSocket.connectionOnPong }
}
in
run @state
let connectionOnPong = writeChan pongChan ()
let ?connection = connection
{ WebSocket.connectionOptions = (get #connectionOptions connection) { WebSocket.connectionOnPong }
}
in
run @state

result <- Exception.try ((withPinger connection runWithPongChan) `Exception.finally` onClose @state)
case result of
Expand Down

0 comments on commit 2c5afc0

Please sign in to comment.