summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/packets/cPacket.h')
-rw-r--r--source/packets/cPacket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/packets/cPacket.h b/source/packets/cPacket.h
index 702b3e369..817aa1a27 100644
--- a/source/packets/cPacket.h
+++ b/source/packets/cPacket.h
@@ -16,8 +16,8 @@ public:
{}
virtual ~cPacket() {}
- virtual bool Parse( cSocket & a_Socket) { a_Socket=0; printf("ERROR: Undefined NEW Parse function %x\n", m_PacketID ); return false; }
- virtual bool Send( cSocket & a_Socket) { a_Socket=0; printf("ERROR: Undefined NEW Send function %x\n", m_PacketID ); return false; }
+ virtual bool Parse( cSocket & a_Socket) {a_Socket.CloseSocket(); LOGERROR("Undefined NEW Parse function %x\n", m_PacketID ); return false; }
+ virtual bool Send( cSocket & a_Socket) {a_Socket.CloseSocket(); LOGERROR("Undefined NEW Send function %x\n", m_PacketID ); return false; }
virtual cPacket* Clone() const = 0;
unsigned char m_PacketID;