mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-01 13:27:18 -05:00
Also returning WRONG_STATE if the server is already closed
This commit is contained in:
@@ -447,7 +447,7 @@ class LinkWireless {
|
||||
*/
|
||||
bool closeServer() {
|
||||
LINK_WIRELESS_RESET_IF_NEEDED
|
||||
if (state != SERVING) {
|
||||
if (state != SERVING || sessionState.serverClosed) {
|
||||
lastError = WRONG_STATE;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user