From 88ce7dae1c1466646fbe58e5f87f82ceb7b968bb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 7 May 2014 06:13:27 +0500 Subject: [PATCH] minor tweak to make ws code work in blocking mode properly when used outside sofia --- libs/sofia-sip/libsofia-sip-ua/tport/ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/ws.c b/libs/sofia-sip/libsofia-sip-ua/tport/ws.c index 9ac4f447e5..11b92945c8 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/ws.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/ws.c @@ -630,7 +630,7 @@ ssize_t ws_read_frame(wsh_t *wsh, ws_opcode_t *oc, uint8_t **data) return ws_close(wsh, WS_PROTO_ERR); } - if ((wsh->datalen = ws_raw_read(wsh, wsh->buffer, 9, WS_NOBLOCK)) < 0) { + if ((wsh->datalen = ws_raw_read(wsh, wsh->buffer, 9, wsh->block)) < 0) { if (wsh->datalen == -2) { return -2; }