Skip to content

Commit 3ebff34

Browse files
committed
pa: uncaught exception in auth server: shutdown: endpoint not connected
1 parent 39ab04e commit 3ebff34

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

propa_auth.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ class AuthConnection : public SharedThis<AuthConnection>
208208
timer.async_wait([this](const std::error_code& ec) {
209209
if (ec)
210210
return;
211-
socket.shutdown(asio::socket_base::shutdown_both);
211+
std::error_code ignored;
212+
socket.shutdown(asio::socket_base::shutdown_both, ignored);
212213
});
213214
}
214215

propeller.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,8 @@ void RankConnection::onReceive(const std::error_code& ec, size_t len)
809809
{
810810
if (ec && ec != asio::error::eof)
811811
ERROR_LOG(Game::PropellerA, "rank: %s", ec.message().c_str());
812-
socket.shutdown(asio::ip::tcp::socket::shutdown_both);
812+
std::error_code ignored;
813+
socket.shutdown(asio::socket_base::shutdown_both, ignored);
813814
return;
814815
}
815816
if (len >= 0x34)
@@ -842,7 +843,8 @@ void RankConnection::startTimer()
842843
timer.async_wait([this](const std::error_code& ec) {
843844
if (ec)
844845
return;
845-
socket.shutdown(asio::socket_base::shutdown_both);
846+
std::error_code ignored;
847+
socket.shutdown(asio::socket_base::shutdown_both, ignored);
846848
});
847849
}
848850

0 commit comments

Comments
 (0)