]> git.proxmox.com Git - mirror_novnc.git/commit
Fix occasional error with sending while readyState !== 1
authorDrew DeVault <sir@cmpwn.com>
Thu, 30 Jul 2015 14:13:35 +0000 (10:13 -0400)
committerSamuel Mannehed <samuel@samuel-xps13.lan>
Sat, 30 Apr 2016 00:26:17 +0000 (02:26 +0200)
commitf6a29ddeeb5557d8f20f998038a065d04509fd9d
tree8cc4003b675fdb4cb5ed618da0628dfb1e35ca24
parent32df3fdbe1b289b06344902b72537d6dc3671afb
Fix occasional error with sending while readyState !== 1

Under certain conditions, noVNC would attempt to flush the web socket
while it was disconnected, before the disconnected state was picked up.
This casues noVNC to crash ungracefully and the parent window is not
notified - leading to no chance at recovery without a page refresh.
include/websock.js