mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-25 16:23:41 -05:00
LinkUniversal: On deactivate, only call deactivate() on cable mode if it's active
This commit is contained in:
parent
fd5f298649
commit
411e98f7bd
|
|
@ -183,7 +183,8 @@ class LinkUniversal {
|
|||
*/
|
||||
bool deactivate(bool turnOffWireless = true) {
|
||||
isEnabled = false;
|
||||
linkCable.deactivate();
|
||||
if (linkCable.isActive())
|
||||
linkCable.deactivate();
|
||||
bool success = linkWireless.deactivate(turnOffWireless);
|
||||
resetState();
|
||||
return success;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user