mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
fix: improve handling of client connection failures
This commit is contained in:
@@ -27,6 +27,7 @@ public:
|
||||
|
||||
|
||||
private:
|
||||
asio::io_context& m_ioContext; // 添加引用
|
||||
asio::ip::tcp::resolver m_resolver;
|
||||
asio::ip::tcp::socket m_socket;
|
||||
std::string m_host;
|
||||
@@ -47,5 +48,6 @@ private:
|
||||
void waitForOpponent();
|
||||
void stopWaiting(); // 停止等待
|
||||
|
||||
|
||||
void closeConnection();
|
||||
void attemptReconnect(); // 尝试重新连接
|
||||
};
|
||||
Reference in New Issue
Block a user