diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 6aab51d4..dca06f5c 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -1299,7 +1299,7 @@ static void DrawContents() viewShutdown.store( ViewShutdown::False, std::memory_order_relaxed ); if( reconnect ) { - view = std::make_unique( RunOnMainThread, reconnectAddr.c_str(), reconnectPort, SetWindowTitleCallback, SetupScaleCallback, AttentionCallback, s_achievements ); + view.store( std::make_unique( RunOnMainThread, reconnectAddr.c_str(), reconnectPort, SetWindowTitleCallback, SetupScaleCallback, AttentionCallback, s_achievements ), std::memory_order_release ); } break; default: