diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 56456ae9..9815277f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2306,7 +2306,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, } } - while( vbegin < vend ) + for(;;) { while( vbegin < vend && ( state == LockState::Nothing || ( m_onlyContendedLocks && state == LockState::HasLock ) ) ) {