diff --git a/src/WebSocket.h b/src/WebSocket.h index aa13401..51b27d7 100644 --- a/src/WebSocket.h +++ b/src/WebSocket.h @@ -63,7 +63,7 @@ public: ); /* Skip sending and report success if we are over the limit of maxBackpressure */ - if (webSocketContextData->maxBackpressure < getBufferedAmount()) { + if (webSocketContextData->maxBackpressure && webSocketContextData->maxBackpressure < getBufferedAmount()) { return true; }