mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-13 10:04:41 +00:00
Return early and OK if signal watcher is already stopped
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -140,6 +140,9 @@ int uev_signal_start(uev_t *w)
|
||||
*/
|
||||
int uev_signal_stop(uev_t *w)
|
||||
{
|
||||
if (!_uev_watcher_active(w))
|
||||
return 0;
|
||||
|
||||
if (_uev_watcher_stop(w))
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user