bluetooth/btstack/avctp/avctp.cpp
branchRCL_3
changeset 56 015fa7494bd2
parent 13 20fda83a6398
--- a/bluetooth/btstack/avctp/avctp.cpp	Wed Sep 15 13:27:26 2010 +0300
+++ b/bluetooth/btstack/avctp/avctp.cpp	Wed Oct 13 15:48:34 2010 +0300
@@ -388,6 +388,7 @@
 	localAddr.SetSecurity(sec);
 	
 	CleanupStack::Pop(sap);
+	__ASSERT_DEBUG(!iListener, Panic(EObjectAlreadyExists));
 	iListener = CIncomingConnectionListener::NewL(*this, sap, localAddr, KProtocolListeningQueueSize);										
 	
 	CServProviderBase* sap2 =iLowerProtocol->NewSAPL(KSockSeqPacket);