GNOME Bugzilla – Bug 701753
Handle SPICE connection errors
Last modified: 2016-03-31 13:22:07 UTC
When an error occurs during SPICE connection, a channel-event event is emitted, and its type is SPICE_CHANNEL_ERROR_XXX. Boxes currently catches some channel-event events, but does not do anything in case of errors. When such an error occurs (for example because of a wrong remote host certificate), Boxes UI is stuck on a centered half zoomed screen, and does not do anything. By emitting the disconnected() signal when such an error is caught, we ensure we will go back to the collection view.
Created attachment 246175 [details] [review] Handle SPICE connection errors
Review of attachment 246175 [details] [review]: ACK, should we also display some message to user?
Review of attachment 246175 [details] [review]: Yup, exactly my thoughts after sleeping on it, I'll submit a patch doing that.
Created attachment 246230 [details] [review] Handle SPICE connection errors When an error occurs during SPICE connection, a channel-event event is emitted, and its type is SPICE_CHANNEL_ERROR_XXX. Boxes currently catches some channel-event events, but does not do anything in case of errors. When such an error occurs (for example because of a wrong remote host certificate), Boxes UI is stuck on a centered half zoomed screen, and does not do anything. By emitting the disconnected() signal when such an error is caught, we ensure we will go back to the collection view.
Attachment 246230 [details] pushed as d3ff984 - Handle SPICE connection errors
Bleh, forgot I had sent an unreviewed v2 before pushing, sorry about that. I'll revert if there are issues with it.
Review of attachment 246230 [details] [review]: Looks good. No need to revert. :)