Skip to content

Commit

Permalink
.contains is C++20 only
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Feb 19, 2024
1 parent 37cb527 commit c89adc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/cluster/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void cluster::tick_timers() {
*/
bool not_deleted = ([handle, this]() -> bool {
std::lock_guard<std::mutex> l(timer_guard);
return timer_list.contains(handle);
return timer_list.find(handle) != timer_list.end();
}());
if (not_deleted) {
timer_reschedule(t);
Expand Down

0 comments on commit c89adc3

Please sign in to comment.