BLooper: Fix inverted check that was causing a port leak.

Fixes #12286. Thanks to ttcoder & jackburton for investigating!
This commit is contained in:
Augustin Cavalier 2015-08-08 11:38:16 -04:00
parent 6ca16f31cb
commit 7d407a1e99

View File

@ -143,7 +143,7 @@ BLooper::~BLooper()
// msg will automagically post generic reply
}
if (!fOwnsPort) {
if (fOwnsPort) {
do {
delete ReadMessageFromPort(0);
// msg will automagically post generic reply