• Solly Ross's avatar
    Throw exceptions from RFB constructor · d9fc1c7b
    Solly Ross authored
    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
    d9fc1c7b
ui.js 40.7 KB