From cc8aa165b1bca70d8a6b82e94ec2e93ec55e50f0 Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Thu, 16 Aug 2018 18:06:37 +0100 Subject: [PATCH] Fix the xmpp issue after restartting the CPE --- xmpp/xmpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/xmpp.c b/xmpp/xmpp.c index f81759a..2d9a9fd 100644 --- a/xmpp/xmpp.c +++ b/xmpp/xmpp.c @@ -323,7 +323,7 @@ void xmpp_connecting(void) connected = xmpp_connect_client(conn, cur_xmpp_con.serveraddress[0] ? cur_xmpp_con.serveraddress : NULL, cur_xmpp_con.port, conn_handler, ctx); - if (connected == -1 ) + if (connected < 0 ) { xmpp_exit(ctx, conn); cwmp_xmpp_log(SINFO,"XMPP Connection Retry");