Jan Kamidra / WebSocketClient
Revision:
12:495c97f41a64
Parent:
11:9ee267dafdd7
--- a/Websocket.cpp	Mon May 24 19:37:04 2021 +0000
+++ b/Websocket.cpp	Mon May 24 19:40:27 2021 +0000
@@ -346,7 +346,7 @@
             return len;
     }
     
-    return res; //(idx == 0) ? -1 : idx;
+    return (idx == 0) ? -1 : idx;
 }
 
 int Websocket::read(char * str, int len, int min_len) {