Skip to content

Commit

Permalink
fix key not used
Browse files Browse the repository at this point in the history
  • Loading branch information
maeglindeveloper committed Apr 13, 2021
1 parent dd2fb3c commit 2a63394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/handler/transport/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (c *wsConnection) readOp() *operationMessage {
func (c *wsConnection) close(closeCode int, message string) {
c.mu.Lock()
_ = c.conn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(closeCode, message))
for key, closer := range c.active {
for _, closer := range c.active {
closer()
}
c.mu.Unlock()
Expand Down

0 comments on commit 2a63394

Please sign in to comment.