Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

LuaLobby: close socket on exit

  • Loading branch information...
commit d5152d795c32fe687914eb2ba02361b19027d9b4 1 parent a8199b2
jK authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  rts/lib/lobby/Connection.cpp
View
1  rts/lib/lobby/Connection.cpp
@@ -31,6 +31,7 @@ Connection::~Connection()
if (sock.is_open()) {
SendData("EXIT\n");
}
+ sock.shutdown(boost::asio::ip::udp::socket::shutdown_both);
sock.close();
netservice.poll();
netservice.reset();
Please sign in to comment.
Something went wrong with that request. Please try again.