From 63743f2760172fb4eee48b39df4b29658294f28a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Oct 2022 14:51:21 +0200 Subject: [PATCH] Don't listen for broadcasts on emscripten. --- profiler/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index c129f491..9d2d95bd 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -265,6 +265,7 @@ static void DrawContents() static uint16_t reconnectPort; static bool showFilter = false; +#ifndef __EMSCRIPTEN__ if( !view ) { const auto time = std::chrono::duration_cast( std::chrono::system_clock::now().time_since_epoch() ).count(); @@ -352,6 +353,7 @@ static void DrawContents() { clients.clear(); } +#endif int display_w, display_h; bptr->NewFrame( display_w, display_h );