bthci/hci2implementations/CommandsEvents/symbian/src/disconnectcommand.cpp
changeset 21 5e5528a288fe
parent 0 29b1cd4cb562
--- a/bthci/hci2implementations/CommandsEvents/symbian/src/disconnectcommand.cpp	Mon May 03 13:34:38 2010 +0300
+++ b/bthci/hci2implementations/CommandsEvents/symbian/src/disconnectcommand.cpp	Fri May 14 16:59:23 2010 +0300
@@ -81,9 +81,13 @@
 	{
 	if (aEvent.EventCode() == EDisconnectionCompleteEvent)
 		{
-		aMatchesCmd = ETrue;
-		aConcludesCmd = ETrue;
-		aContinueMatching = EFalse;
+		TDisconnectionCompleteEvent& event = TDisconnectionCompleteEvent::Cast(aEvent);
+		if (event.ConnectionHandle() == ConnectionHandle())
+			{
+			aMatchesCmd = ETrue;
+			aConcludesCmd = ETrue;
+			aContinueMatching = EFalse;
+			}
 		}
 	// Command Status Event and default Command Complete Event matching
 	// is implemented in the base class.  If we haven't matched already