bluetooth/btstack/avctp/avctp.cpp
changeset 51 20ac952a623c
parent 17 907b2fb7aa8e
--- a/bluetooth/btstack/avctp/avctp.cpp	Thu Sep 23 17:06:47 2010 +0300
+++ b/bluetooth/btstack/avctp/avctp.cpp	Wed Oct 13 16:20:29 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);