Browse Source

Fix missing send lock on poll out event in TCP transport

Paul-Louis Ageneau 4 months ago
parent
commit
b39a35e6fd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/impl/tcptransport.cpp

+ 1 - 0
src/impl/tcptransport.cpp

@@ -427,6 +427,7 @@ void TcpTransport::process(PollService::Event event) {
 		}
 		}
 
 
 		case PollService::Event::Out: {
 		case PollService::Event::Out: {
+			std::lock_guard lock(mSendMutex);
 			if (trySendQueue())
 			if (trySendQueue())
 				setPoll(PollService::Direction::In);
 				setPoll(PollService::Direction::In);