mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
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:
parent
68770468d3
commit
2e2c2a2cf1
1 changed files with 2 additions and 2 deletions
|
@ -1196,7 +1196,7 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
||||||
RunLoopWatcher *watcher;
|
RunLoopWatcher *watcher;
|
||||||
|
|
||||||
watcher = NSMapGet(_wfdMap, (void*)fd_index);
|
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
|
* The watcher is still valid - so call it's receivers
|
||||||
|
@ -1223,7 +1223,7 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
||||||
RunLoopWatcher *watcher;
|
RunLoopWatcher *watcher;
|
||||||
|
|
||||||
watcher = (RunLoopWatcher*)NSMapGet(_rfdMap, (void*)fd_index);
|
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
|
* The watcher is still valid - so call it's receivers
|
||||||
|
|
Loading…
Reference in a new issue