larku / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
60 stars 27 forks source link

Fixed threading issue in CancelConnectionAttempt. #11

Closed larku closed 9 years ago

larku commented 9 years ago

A mutex is locked when getting entries in requestedConnectionQueue, but these entries are then manipulated outside of the locked area. When calling CancelConnectionAttempt these entries can be removed while still being manipulated causing all kinds of corruptions and crashes. This is now fixed by queuing the canceling of connection attempts.