Check for port deletion.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39868 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
892f944251
commit
e37327bd6b
@ -336,6 +336,10 @@ DebuggerInterface::GetNextDebugEvent(DebugEvent*& _event)
|
||||
return size;
|
||||
}
|
||||
|
||||
if (infos[0].events & B_EVENT_INVALID
|
||||
|| infos[1].events & B_EVENT_INVALID)
|
||||
return B_BAD_PORT_ID;
|
||||
|
||||
if (infos[0].events & B_EVENT_READ)
|
||||
return _GetNextDebuggerEvent(_event);
|
||||
else if (infos[1].events & B_EVENT_READ)
|
||||
|
Loading…
Reference in New Issue
Block a user