From 413e61ef8103f6743a464e7cb49bc2e2f32c366b Mon Sep 17 00:00:00 2001 From: Arisotura Date: Thu, 6 Apr 2023 18:55:16 +0200 Subject: [PATCH] please remember to flush --- src/frontend/qt_sdl/Netplay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/qt_sdl/Netplay.cpp b/src/frontend/qt_sdl/Netplay.cpp index e9da64fe..c5ef15d6 100644 --- a/src/frontend/qt_sdl/Netplay.cpp +++ b/src/frontend/qt_sdl/Netplay.cpp @@ -511,6 +511,7 @@ bool SendBlobToMirrorClients(int type, u32 len, u8* data) ENetPacket* pkt = enet_packet_create(buf, 16+chunklen, ENET_PACKET_FLAG_RELIABLE); enet_host_broadcast(MirrorHost, 1, pkt); + enet_host_flush(MirrorHost); } } @@ -683,6 +684,7 @@ void SyncMirrorClients() data[1] = (u8)Config::ConsoleType; ENetPacket* pkt = enet_packet_create(&data, 2, ENET_PACKET_FLAG_RELIABLE); enet_host_broadcast(MirrorHost, 1, pkt); + enet_host_flush(MirrorHost); // wait for all clients to have caught up int ngood = 0; @@ -711,6 +713,7 @@ void SyncMirrorClients() data[0] = 0x05; pkt = enet_packet_create(&data, 1, ENET_PACKET_FLAG_RELIABLE); enet_host_broadcast(MirrorHost, 1, pkt); + enet_host_flush(MirrorHost); StartLocal(); }