]> git.proxmox.com Git - mirror_novnc.git/commit - vnc_auto.html
Throw exceptions from RFB constructor
authorSolly Ross <sross@redhat.com>
Tue, 24 Mar 2015 20:02:53 +0000 (16:02 -0400)
committerSolly Ross <sross@redhat.com>
Thu, 26 Mar 2015 21:10:24 +0000 (17:10 -0400)
commitd9fc1c7be45f7be9f127636d5d63c3c224f05d1d
tree486346dbc37c677b76baf350f6b21c76abf876d3
parent58ded70d150c31df2fbd78c0320af6edc72610fc
Throw exceptions from RFB constructor

Previously, if an error was thrown from the Display constructor
in the RFB constructor, we would attempt to use `RFB#updateState`
to handle this.  However, `RFB#updateState` attempts to close
the WebSocket connection, which doesn't exist at this point.

In the constructor, it's probably just better to raise an exception
instead (making sure to clean up anything relevant).

Fixes #460
include/rfb.js
include/ui.js
vnc_auto.html