Skip to content

Commit

Permalink
only close websocket once
Browse files Browse the repository at this point in the history
  • Loading branch information
wiegell committed Aug 26, 2024
1 parent 256794a commit 2f16898
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion graphql/handler/transport/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ func (c *wsConnection) run() {
ctx, cancel := context.WithCancel(c.ctx)
defer func() {
cancel()
c.close(websocket.CloseAbnormalClosure, "unexpected closure")
}()

// If we're running in graphql-ws mode, create a timer that will trigger a
Expand Down

0 comments on commit 2f16898

Please sign in to comment.