telephonyprotocols/rawipnif/src/RawIPFlow.cpp
branchRCL_3
changeset 21 4814c5a49428
parent 20 07a122eea281
--- a/telephonyprotocols/rawipnif/src/RawIPFlow.cpp	Wed Sep 01 12:40:21 2010 +0100
+++ b/telephonyprotocols/rawipnif/src/RawIPFlow.cpp	Tue Sep 14 23:33:57 2010 +0300
@@ -236,7 +236,13 @@
 	_LOG_L1C3(_L8("CRawIPFlow %08x:\tSendPacket(): length=%d"),
 		this, aPdu.Length() - aPdu.First()->Length());
 
-    __PACKETLOG_WRITE_PACKET(aPdu, 0);
+#ifdef _DEBUG
+	if (__packetLogger__ != NULL)
+	    {
+	    __PACKETLOG_WRITE_PACKET(aPdu, 0);
+	    }
+#endif
+
     return iBcaController->Send(aPdu);
 	}