diff --git a/rpcwebsocket.go b/rpcwebsocket.go index b8349224..c24da299 100644 --- a/rpcwebsocket.go +++ b/rpcwebsocket.go @@ -160,6 +160,8 @@ out: if len(q) == 0 { dequeue = nil skipQueue = out + } else { + next = q[0] } case <-quit: