summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjusung <jusung07.son@samsung.com>2021-05-28 11:03:52 +0900
committerjusung <jusung07.son@samsung.com>2021-05-28 11:05:52 +0900
commit0aca4decfb662d9c9e7b618158f98ea462a459c4 (patch)
tree8716f2d5ae15438ff121e13013c1fdab4bdd303c
parenta51e64889212b4f934f23cf1e87781d6b1197b4f (diff)
downloadbuxton2-0aca4decfb662d9c9e7b618158f98ea462a459c4.tar.gz
buxton2-0aca4decfb662d9c9e7b618158f98ea462a459c4.tar.bz2
buxton2-0aca4decfb662d9c9e7b618158f98ea462a459c4.zip
Fix wrong comparison statement
Change-Id: If08419ba9cd0f2ec311aa252deb741b5c46111cc Signed-off-by: jusung <jusung07.son@samsung.com>
-rw-r--r--lib/buxton2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buxton2.c b/lib/buxton2.c
index 5800506..2f905b5 100644
--- a/lib/buxton2.c
+++ b/lib/buxton2.c
@@ -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);