Skip to content

Commit

Permalink
Better SPICE protocol connection failure reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
iiordanov committed Feb 10, 2024
1 parent 8554920 commit 94d6e24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion remoteClientLib/src/main/cpp/android/android-spicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ static void main_channel_event(SpiceChannel *channel, SpiceChannelEvent event,
g_message("main channel: switching host");
break;
case SPICE_CHANNEL_CLOSED:
/* this event is only sent if the channel was succesfully opened before */
/* this event is only sent if the channel was successfully opened before */
g_message("main channel: closed");
sendMessage(g_env, 5, "Connection failed."); /* SPICE_CONNECT_FAILURE */
connection_disconnect(conn);
break;
case SPICE_CHANNEL_ERROR_IO:
sendMessage(g_env, 5, "Connection failed."); /* SPICE_CONNECT_FAILURE */
connection_disconnect(conn);
break;
case SPICE_CHANNEL_ERROR_TLS:
Expand Down

0 comments on commit 94d6e24

Please sign in to comment.