]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
minor tweak to make ws code work in blocking mode properly when used outside sofia
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 May 2014 01:13:27 +0000 (06:13 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 May 2014 01:13:27 +0000 (06:13 +0500)
libs/sofia-sip/libsofia-sip-ua/tport/ws.c

index 9ac4f447e58242523a8e468bd3fb4560c09946ec..11b92945c890f03207e669175a43075b83bdaca3 100644 (file)
@@ -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;
                }