]> git.deb.at Git - rhonda/impostor.hazel.git/commit
Flush outgoing packets before shutting closing socket
authorMatthew Endsley <mendsley@gmail.com>
Thu, 4 Feb 2021 21:54:15 +0000 (13:54 -0800)
committerMatthew Endsley <mendsley@gmail.com>
Thu, 4 Feb 2021 21:55:01 +0000 (13:55 -0800)
commit6992dd4174346a980e59cc0ede44c6acdc3b2e2e
tree24398ff7f00e9d6fd27cfe4f1ff71425849500e9
parent8763f3a99ed7c0651e94a1cb13525351adbc7851
Flush outgoing packets before shutting closing socket

This ensures we at least attempt to send out Disconnect packets to
connected clients when shutting down. Prior to this the send thread
would race the Dispose thread causing indeterminate behavior. Sometimes
disconnect packets would be sent out, sometimes they wouldn't.
Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs