mirror of
https://github.com/Codeux-Software/Textual.git
synced 2026-06-16 13:24:32 +00:00
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:
@@ -261,6 +261,8 @@ final class Connection: NSObject, ConnectionSocketDelegate
|
||||
|
||||
if (bypassQueue) {
|
||||
send(data, removeFromQueue: false)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
sendQueue(add: data)
|
||||
|
||||
Reference in New Issue
Block a user