From 494c9440c5466a6413bbee69b11aae6167ad34e6 Mon Sep 17 00:00:00 2001 From: WingLim <643089849@qq.com> Date: Tue, 18 Jun 2019 21:10:13 +0800 Subject: [PATCH] Fix function monitor() When everything is right, monitor return true and parser the data. --- SocketIOClient.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SocketIOClient.cpp b/SocketIOClient.cpp index af917f5..9f729a4 100644 --- a/SocketIOClient.cpp +++ b/SocketIOClient.cpp @@ -154,10 +154,13 @@ bool SocketIOClient::monitor() { if (index != -1) { parser(index); + return 1; + } if (index2 != -1) { parser(index2); + return 1; } } }