Skip to content
Snippets Groups Projects
Commit 3ba2671c authored by Jan Kadlec's avatar Jan Kadlec
Browse files

evsched: Return -1 when cancel was not successful (due to event replanning)

parent 50a011d9
No related branches found
No related tags found
2 merge requests!114Deadlock Fixes,!107Thread-safe cryptography
......@@ -325,7 +325,7 @@ int evsched_cancel(evsched_t *s, event_t *ev)
*/
if (s->cur == ev) {
s->cur = NULL; /* Invalidate */
found = 1; /* Mark as found (although not in heap). */
found = -1; /* Return error, since the event is running again */
}
/* Unlock calendar. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment