Skip to content

Commit e6dcd6c

Browse files
committed
DeferredBackend: Fix spamming PollState
Need to exchange this to false.
1 parent 33a7113 commit e6dcd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Backends/DeferredBackend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace gamescope
168168
{
169169
std::shared_lock lock{ m_mutInit };
170170
if ( m_bInittedChild )
171-
return m_pChild->PollState() || m_bJustInittedPoll;
171+
return m_pChild->PollState() || m_bJustInittedPoll.exchange( false );
172172
}
173173
return false;
174174
}

0 commit comments

Comments
 (0)