Skip to content

Commit

Permalink
allow pongs on drained connection
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubwro committed Oct 4, 2023
1 parent c1dcaa0 commit 628bf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/send.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function send(nc::Connection, message::ProtocolMessage)
if isdrained(nc)
if message isa Unsub
if message isa Unsub || message isa Pong
status(nc) == DRAINED && error("Connection is drained.")
else
error("Connection is drained.")
Expand Down

0 comments on commit 628bf8e

Please sign in to comment.