Fix wrong comparison statement 25/258925/1
authorjusung <jusung07.son@samsung.com>
Fri, 28 May 2021 02:03:52 +0000 (11:03 +0900)
committerjusung <jusung07.son@samsung.com>
Fri, 28 May 2021 02:05:52 +0000 (11:05 +0900)
Change-Id: If08419ba9cd0f2ec311aa252deb741b5c46111cc
Signed-off-by: jusung <jusung07.son@samsung.com>
lib/buxton2.c

index 5800506..2f905b5 100644 (file)
@@ -2513,7 +2513,7 @@ static gboolean recv_cb(gint fd, GIOCondition cond, gpointer data)
        }
 
        r = proc_msg(cli);
-       if (r == -1) {
+       if (r != BUXTON_ERROR_NONE) {
                cli->fd_id = 0;
                g_idle_add(close_conn, cli);
                pthread_mutex_unlock(&clients_lock);