File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ namespace ofxLibwebsockets {
5959 case LWS_CALLBACK_CONFIRM_EXTENSION_OKAY:
6060 case LWS_CALLBACK_CLIENT_CONFIRM_EXTENSION_SUPPORTED:
6161 case LWS_CALLBACK_PROTOCOL_INIT:
62+ case LWS_CALLBACK_WSI_CREATE:
6263 return 0 ;
6364
6465 case LWS_CALLBACK_FILTER_NETWORK_CONNECTION:
@@ -82,6 +83,7 @@ namespace ofxLibwebsockets {
8283 case LWS_CALLBACK_UNLOCK_POLL:
8384 case LWS_CALLBACK_GET_THREAD_ID:
8485 case LWS_CALLBACK_CLIENT_FILTER_PRE_ESTABLISH:
86+ case LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER:
8587 return 1 ;
8688
8789 default :
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ namespace ofxLibwebsockets {
123123 switch (reason) {
124124 // connection was not successful
125125 case LWS_CALLBACK_CLIENT_CONNECTION_ERROR:
126+ case LWS_CALLBACK_WSI_DESTROY:
126127 ofLogError ()<<" [ofxLibwebsockets] Connection error" ;
127128 // TODO: add error event!
128129
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ namespace ofxLibwebsockets {
118118 ofLogError () << " [ofxLibwebsockets] libwebsockets init failed" ;
119119 return false ;
120120 } else {
121- startThread (true , false ); // blocking, non-verbose
121+ startThread (); // blocking, non-verbose
122122 return true ;
123123 }
124124 }
You can’t perform that action at this time.
0 commit comments