Skip to content

Commit 21c5c15

Browse files
Fix: invert condition, that was stupid
1 parent 6b06740 commit 21c5c15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Inc/HALAL/Services/Time/Scheduler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct Scheduler {
5757
3. id_2 = set_timeout(y, func_2) // id will be equal to id_2
5858
4. clear_timeout(id) -> will remove the second timeout
5959
*/
60-
if(!tasks_[id].repeating) return;
60+
if(tasks_[id].repeating) return;
6161
unregister_task(id);
6262
}
6363

0 commit comments

Comments
 (0)