mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +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:
1 parent
6ae98d135c
commit
6d33c56d0f
1 file changed
+3
@@ -140,6 +140,9 @@ int uev_signal_start(uev_t *w)
|
|||||||
*/
|
*/
|
||||||
int uev_signal_stop(uev_t *w)
|
int uev_signal_stop(uev_t *w)
|
||||||
{
|
{
|
||||||
|
if (!_uev_watcher_active(w))
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (_uev_watcher_stop(w))
|
if (_uev_watcher_stop(w))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user