Browse Source

Fixed && instead of || when EWOULDBLOCK != EAGAIN #38

Paul-Louis Ageneau 5 years ago
parent
commit
cb3bc85474
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sctptransport.cpp

+ 1 - 1
src/sctptransport.cpp

@@ -373,7 +373,7 @@ bool SctpTransport::trySendMessage(message_ptr message) {
 	if (ret >= 0) {
 		PLOG_VERBOSE << "SCTP sent size=" << message->size();
 		return true;
-	} else if (errno == EWOULDBLOCK && errno == EAGAIN) {
+	} else if (errno == EWOULDBLOCK || errno == EAGAIN) {
 		PLOG_VERBOSE << "SCTP sending not possible";
 		return false;
 	} else {