fix a problem in case the port id was indeed 0, which is very unlikely though
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16714 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ecf9f94800
commit
a9bee75b3e
@ -133,7 +133,7 @@ BLooper::~BLooper()
|
||||
}
|
||||
|
||||
// Close the message port and read and reply to the remaining messages.
|
||||
if (fMsgPort > 0)
|
||||
if (fMsgPort >= 0)
|
||||
close_port(fMsgPort);
|
||||
|
||||
BMessage *msg;
|
||||
|
Loading…
Reference in New Issue
Block a user