maxBackpressure of 0 should always mean disabled

This commit is contained in:
Alex Hultman
2020-06-21 00:10:03 +02:00
parent e85b5bff3c
commit 04bce1b828
+1 -1
View File
@@ -63,7 +63,7 @@ public:
); );
/* Skip sending and report success if we are over the limit of maxBackpressure */ /* 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; return true;
} }