[libsoup] websocket-connection: avoid printing debug message when there is no error



commit 7cd1e328ec3243da7a0e83ba860ae83b8b1438e5
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Wed Jul 12 11:38:22 2017 +0200

    websocket-connection: avoid printing debug message when there is no error
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784935

 libsoup/soup-websocket-connection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
index 04bf47f..5c3fcdd 100644
--- a/libsoup/soup-websocket-connection.c
+++ b/libsoup/soup-websocket-connection.c
@@ -563,14 +563,14 @@ close_connection (SoupWebsocketConnection *self,
                if (pv->connection_type == SOUP_WEBSOCKET_CONNECTION_SERVER) {
                        g_debug ("Wrong closing code %d received for a server connection",
                                 code);
-                       break;
                }
+               break;
        case SOUP_WEBSOCKET_CLOSE_SERVER_ERROR:
                if (pv->connection_type != SOUP_WEBSOCKET_CONNECTION_SERVER) {
                        g_debug ("Wrong closing code %d received for a non server connection",
                                 code);
-                       break;
                }
+               break;
        default:
                g_debug ("Wrong closing code %d received", code);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]