Fix issue that may cause outgoing commands to be sent twice

The function for sending commands has an option to bypass flood control queue and go directly to socket. This is only used for PONG as of this commit which is why this issue has gone unnoticed for so long. When the flag bypassQueue was true, the PONG was being sent, but the function did not return afterwards, so the PONG was queued for another send afterwards.
This commit is contained in:
Michael
2024-06-15 20:48:09 -04:00
parent de26409c91
commit 00a76f6076
@@ -261,6 +261,8 @@ final class Connection: NSObject, ConnectionSocketDelegate
if (bypassQueue) {
send(data, removeFromQueue: false)
return
}
sendQueue(add: data)