Fixed bug when watchers removed by nested runloop.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4260 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-05-18 07:24:30 +00:00
parent 68770468d3
commit 2e2c2a2cf1

View file

@ -1196,7 +1196,7 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
RunLoopWatcher *watcher;
watcher = NSMapGet(_wfdMap, (void*)fd_index);
if (watcher->_invalidated == NO)
if (watcher != nil && watcher->_invalidated == NO)
{
/*
* The watcher is still valid - so call it's receivers
@ -1223,7 +1223,7 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
RunLoopWatcher *watcher;
watcher = (RunLoopWatcher*)NSMapGet(_rfdMap, (void*)fd_index);
if (watcher->_invalidated == NO)
if (watcher != nil && watcher->_invalidated == NO)
{
/*
* The watcher is still valid - so call it's receivers