--- 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