Don't listen for broadcasts on emscripten.

This commit is contained in:
Bartosz Taudul 2022-10-08 14:51:21 +02:00
parent fadd103169
commit 63743f2760
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -265,6 +265,7 @@ static void DrawContents()
static uint16_t reconnectPort; static uint16_t reconnectPort;
static bool showFilter = false; static bool showFilter = false;
#ifndef __EMSCRIPTEN__
if( !view ) if( !view )
{ {
const auto time = std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::system_clock::now().time_since_epoch() ).count(); const auto time = std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::system_clock::now().time_since_epoch() ).count();
@ -352,6 +353,7 @@ static void DrawContents()
{ {
clients.clear(); clients.clear();
} }
#endif
int display_w, display_h; int display_w, display_h;
bptr->NewFrame( display_w, display_h ); bptr->NewFrame( display_w, display_h );