mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
refactor: improve resource cleanup logic on network battle exit
This commit is contained in:
@@ -24,6 +24,7 @@ public:
|
||||
void sentClickPosition(const NetData& data, bool isChangeTurn = false);
|
||||
|
||||
|
||||
void closeConnection();
|
||||
|
||||
|
||||
private:
|
||||
@@ -48,6 +49,5 @@ private:
|
||||
void waitForOpponent();
|
||||
void stopWaiting(); // 停止等待
|
||||
|
||||
void closeConnection();
|
||||
void attemptReconnect(); // 尝试重新连接
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user