Skip to content

Commit

Permalink
Support Create() not creating an item.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed May 23, 2024
1 parent cf23441 commit 216a4b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/TracyStringDiscovery.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ class StringDiscovery
if( pit == m_pending.end() )
{
T item = Create( name );
m_pending.emplace( name, item );
Query( name );
if( item )
{
m_pending.emplace( name, item );
Query( name );
}
return item;
}
else
Expand Down

0 comments on commit 216a4b7

Please sign in to comment.