fix bug in reading socket
[src/app-framework-binder.git] / src / websock.c
index 1b886c1..e899ee5 100644 (file)
@@ -537,7 +537,7 @@ int websock_drop(struct websock *ws)
        char buffer[8000];
 
        while (ws->length)
-               if (ws_read(ws, buffer, sizeof buffer) < 0)
+               if (websock_read(ws, buffer, sizeof buffer) < 0)
                        return -1;
        return 0;
 }