mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Merge pull request #423 from paullouisageneau/remove-usrsctp-data-race-mitigation
Remove usrsctp data race mitigation
This commit is contained in:
@ -416,9 +416,6 @@ void SctpTransport::incoming(message_ptr message) {
|
||||
|
||||
PLOG_VERBOSE << "Incoming size=" << message->size();
|
||||
|
||||
// TODO: There seems to be a possible data race between usrsctp_sendv() and usrsctp_conninput()
|
||||
// As a mitigation, lock the send mutex before calling usrsctp_conninput()
|
||||
std::lock_guard lock(mSendMutex);
|
||||
usrsctp_conninput(this, message->data(), message->size(), 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user