Correct a bug that cause a deadlock when deleting BMidi class

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2009 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
jerl1
2002-11-18 15:47:31 +00:00
parent 769a895450
commit 21731ccd09
+2 -2
View File
@@ -312,10 +312,10 @@ void BMidi::Inflow()
{ {
len = read_port(inflowPort, &code, &event, sizeof(event)); len = read_port(inflowPort, &code, &event, sizeof(event));
if (len != sizeof(event)) { continue; } // ignore errors
if (code == MSG_CODE_TERMINATE_THREAD) { return; } if (code == MSG_CODE_TERMINATE_THREAD) { return; }
if (len != sizeof(event)) { continue; } // ignore errors
switch (event.opcode) switch (event.opcode)
{ {
case BMidiEvent::OP_NONE: case BMidiEvent::OP_NONE: