From a9bee75b3ee9cfee38b19f4db30706ca987f8dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 11 Mar 2006 19:34:36 +0000 Subject: [PATCH] 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 --- src/kits/app/Looper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index ea3542575d..7f47adffe7 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -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;