mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-25 08:07:59 -05:00
Fix handshake bug in async rewrite
This commit is contained in:
parent
f7ac879011
commit
74ea6fcdc5
|
|
@ -60,7 +60,7 @@
|
|||
* @brief Enable logging.
|
||||
* \warning Set `linkWirelessMultiboot->logger` and uncomment to enable!
|
||||
*/
|
||||
#define LINK_WIRELESS_MULTIBOOT_ENABLE_LOGGING // TODO: DISABLE
|
||||
// #define LINK_WIRELESS_MULTIBOOT_ENABLE_LOGGING
|
||||
#endif
|
||||
|
||||
LINK_VERSION_TAG LINK_WIRELESS_MULTIBOOT_VERSION =
|
||||
|
|
@ -1207,8 +1207,10 @@ class LinkWirelessMultiboot {
|
|||
void startOrKeepListening() {
|
||||
if ((linkRawWireless.playerCount() < fixedData.players &&
|
||||
!dynamicData.ready) ||
|
||||
linkRawWireless.playerCount() <= 1)
|
||||
linkRawWireless.playerCount() <= 1) {
|
||||
state = LISTENING;
|
||||
return (void)pollConnections();
|
||||
}
|
||||
|
||||
dynamicData.ready = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user