From 592644ae439a61b00ae8b67d03869032f84c2e10 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 1 Apr 2021 20:16:47 +0200 Subject: [PATCH] Don't issue warning if only disconnect is in send queue. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b0d13604..71c58ed7 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1133,7 +1133,8 @@ bool View::DrawImpl() if( m_reactToLostConnection && !m_worker.IsConnected() ) { m_reactToLostConnection = false; - if( m_worker.GetSendInFlight() > 0 ) + const auto inFlight = m_worker.GetSendInFlight(); + if( inFlight > 1 || ( inFlight == 1 && !m_worker.WasDisconnectIssued() ) ) { ImGui::OpenPopup( "Connection lost!" ); }