Fix handshake bug in async rewrite

This commit is contained in:
Rodrigo Alfonso 2025-01-25 00:32:34 -03:00
parent f7ac879011
commit 74ea6fcdc5

View File

@ -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;