diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-08-29 16:19:53 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-08-29 16:19:53 +0200 |
commit | dd1e45095d0525384a3600b8a4532046d35befac (patch) | |
tree | 0853dcf5037df74b7a65266ac977fda887ef6741 | |
parent | 9c4961a0e68458061171aef5f3b30a9b1fa8e333 (diff) |
fix bug in reading socket
Change-Id: I2f7daf847f59a450fafa5d7edf5f5984fdc15481
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/websock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websock.c b/src/websock.c index 1b886c1b..e899ee52 100644 --- a/src/websock.c +++ b/src/websock.c @@ -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; } |