Commit e32288b8 authored by Alex Hultman's avatar Alex Hultman
Browse files

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 {
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