bthci/hci2implementations/CommandsEvents/symbian/src/disconnectcommand.cpp
branchRCL_3
changeset 14 f8503e232b0c
parent 0 29b1cd4cb562
--- a/bthci/hci2implementations/CommandsEvents/symbian/src/disconnectcommand.cpp	Wed Apr 14 17:08:52 2010 +0300
+++ b/bthci/hci2implementations/CommandsEvents/symbian/src/disconnectcommand.cpp	Tue Apr 27 17:48:21 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