diff --git a/source/glest_game/network/connection_slot.cpp b/source/glest_game/network/connection_slot.cpp index ed0b59d66..9a281ba84 100644 --- a/source/glest_game/network/connection_slot.cpp +++ b/source/glest_game/network/connection_slot.cpp @@ -35,10 +35,12 @@ namespace Glest{ namespace Game{ ConnectionSlotThread::ConnectionSlotThread() : BaseThread() { this->slotInterface = NULL; + this->event = NULL; } ConnectionSlotThread::ConnectionSlotThread(ConnectionSlotCallbackInterface *slotInterface) : BaseThread() { this->slotInterface = slotInterface; + this->event = NULL; } void ConnectionSlotThread::setQuitStatus(bool value) { @@ -53,7 +55,7 @@ void ConnectionSlotThread::setQuitStatus(bool value) { } void ConnectionSlotThread::signalUpdate(ConnectionSlotEvent *event) { - SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s] Line: %d\n",__FILE__,__FUNCTION__,__LINE__); + SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] event = %p\n",__FILE__,__FUNCTION__,__LINE__,event); if(event != NULL) { MutexSafeWrapper safeMutex(&triggerIdMutex); diff --git a/source/glest_game/network/server_interface.cpp b/source/glest_game/network/server_interface.cpp index 65dc03b03..f43ccea3b 100644 --- a/source/glest_game/network/server_interface.cpp +++ b/source/glest_game/network/server_interface.cpp @@ -149,7 +149,7 @@ void ServerInterface::slotUpdateTask(ConnectionSlotEvent *event) { SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); if(event->networkMessage != NULL) { - SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s] before sendMessage\n",__FILE__,__FUNCTION__); + SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s] before sendMessage, event->networkMessage = %p\n",__FILE__,__FUNCTION__,event->networkMessage); event->connectionSlot->sendMessage(event->networkMessage); } else { @@ -705,7 +705,7 @@ void ServerInterface::broadcastMessage(const NetworkMessage* networkMessage, int for(int i= 0; i