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:
Stephan Aßmus 2006-03-11 19:34:36 +00:00
parent ecf9f94800
commit a9bee75b3e
1 changed files with 1 additions and 1 deletions

View File

@ -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;