]> git.proxmox.com Git - mirror_novnc.git/commit - include/rfb.js
Fix disconnect/reconnect issues
authorSolly Ross <sross@redhat.com>
Fri, 20 Feb 2015 22:27:27 +0000 (17:27 -0500)
committerSolly Ross <sross@redhat.com>
Wed, 25 Feb 2015 16:01:18 +0000 (11:01 -0500)
commite543525faa9cf0d683f41e183e89cd909f3dd229
tree67ca547e412f9b5d779fa5acf3da06e1e4a8714f
parentfe8a4dc9d80ca49b42bc36ab430db8916556ab3a
Fix disconnect/reconnect issues

Commit 155d78b39933a396d2555376f4e70f976c30b86d prevented reconnections
from working properly.  This fixes that by creating a new RFB object
after disconnecting or failing.

Furthermore, this ensures that a new connection cannot be opened util
we've actually disconnected (either by timer or by receiving a `close`
event).

Closes #452
include/rfb.js
include/ui.js