Permalink
Browse files

LuaLobby: close socket on exit

  • Loading branch information...
1 parent a8199b2 commit d5152d795c32fe687914eb2ba02361b19027d9b4 jK committed May 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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();

0 comments on commit d5152d7

Please sign in to comment.