1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Proper handling of disconnect request.

This commit is contained in:
Bartosz Taudul
2019-08-01 23:14:09 +02:00
parent 344d36086f
commit a4e7a341c0
7 changed files with 47 additions and 4 deletions
+2 -1
View File
@@ -817,11 +817,12 @@ bool View::DrawConnection()
const char* stopStr = "Stop";
#endif
std::shared_lock<std::shared_mutex> lock( m_worker.GetDataLock() );
if( m_worker.IsConnected() )
if( !m_disconnectIssued && m_worker.IsConnected() )
{
if( ImGui::Button( stopStr ) )
{
m_worker.Disconnect();
m_disconnectIssued = true;
}
}
else