DescriptionFixing segfault caused by TurnServer.
TURN server sockets were being destroyed asynchronously, which could
happen after the TurnServer itself (and even the VirtualSocketServer
used by the sockets) were destroyed.
This is fixed easily by using an AsyncInvoker (to ensure the async
operation doesn't occur after its initiator is destroyed), and keeping
the objects waiting for deletion in a unique_ptr vector.
Committed: https://crrev.com/824f58621315a8b39193e06f960d8ff15f84fc13
Cr-Commit-Position: refs/heads/master@{#13907}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Rename "pending_delete_sockets_" to "sockets_to_delete_". #Patch Set 3 : Using rtc::Bind with method as opposed to lambda. #
Messages
Total messages: 16 (6 generated)
|