From 04bce1b828b3227bdfb7b98d7938c5a720e27401 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 21 Jun 2020 00:10:03 +0200 Subject: [PATCH] maxBackpressure of 0 should always mean disabled --- src/WebSocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }