Commit e32288b8 authored by Alex Hultman's avatar Alex Hultman

Make sure 'sent' is non-negative

parent 27b0806f
......@@ -958,6 +958,7 @@ void Socket::write(char *data, size_t length, bool transferOwnership, void(*call
} else {
queueIt:
sent = max<ssize_t>(sent, 0);
// queue the rest of the message!
Message *messagePtr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment