diff --git a/main/gbx/gbx_watch.c b/main/gbx/gbx_watch.c index 2da4261ef..cefb06685 100644 --- a/main/gbx/gbx_watch.c +++ b/main/gbx/gbx_watch.c @@ -500,6 +500,9 @@ static void raise_callback(fd_set *rfd, fd_set *wfd) } } + if (watch_callback[i].fd < 0) + continue; + if (FD_ISSET(wcb.fd, wfd)) { FD_CLR(wcb.fd, wfd);