X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d66ddd70c7976fe519c8997117f1d5e813133560..65ebf13ab624c3be98a9c4028fc107a1e9ec4a9c:/src/unix/fswatcher_kqueue.cpp diff --git a/src/unix/fswatcher_kqueue.cpp b/src/unix/fswatcher_kqueue.cpp index 5229e5139b..f2de067154 100644 --- a/src/unix/fswatcher_kqueue.cpp +++ b/src/unix/fswatcher_kqueue.cpp @@ -149,8 +149,7 @@ public: // TODO more error conditions according to man // XXX closing file descriptor removes the watch. The logic resides in // the watch which is not nice, but effective and simple - bool ret = watch->Close(); - if (ret == -1) + if ( !watch->Close() ) { wxLogSysError(_("Unable to remove kqueue watch")); return false;