mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix lookup issue on TCPObject. Also sync with working code.
This commit is contained in:
parent
458bc27ea4
commit
5b1bb6547a
4 changed files with 145 additions and 59 deletions
|
|
@ -215,9 +215,9 @@ TCPObject::TCPObject()
|
|||
|
||||
if(gTCPCount == 1)
|
||||
{
|
||||
Net::smConnectionAccept.notify(processConnectedAcceptEvent);
|
||||
Net::smConnectionReceive.notify(processConnectedReceiveEvent);
|
||||
Net::smConnectionNotify.notify(processConnectedNotifyEvent);
|
||||
Net::getConnectionAcceptedEvent().notify(processConnectedAcceptEvent);
|
||||
Net::getConnectionReceiveEvent().notify(processConnectedReceiveEvent);
|
||||
Net::getConnectionNotifyEvent().notify(processConnectedNotifyEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -230,9 +230,9 @@ TCPObject::~TCPObject()
|
|||
|
||||
if(gTCPCount == 0)
|
||||
{
|
||||
Net::smConnectionAccept.remove(processConnectedAcceptEvent);
|
||||
Net::smConnectionReceive.remove(processConnectedReceiveEvent);
|
||||
Net::smConnectionNotify.remove(processConnectedNotifyEvent);
|
||||
Net::getConnectionAcceptedEvent().remove(processConnectedAcceptEvent);
|
||||
Net::getConnectionReceiveEvent().remove(processConnectedReceiveEvent);
|
||||
Net::getConnectionNotifyEvent().remove(processConnectedNotifyEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue