MantisBT - Liberty Unleashed
View Issue Details
0000137Liberty UnleashedCrashpublic2016-11-13 13:002016-11-13 14:00
Rhytz 
VRocker 
normalminoralways
assignedopen 
Windows10
0.1.0.16 
 
0000137: socket.SetLostConnFunc and socket.SetNewConnFunc dont work when used together
When you call both SetLostConnFunc and SetNewConnFunc on a socket object, only the one that is last defined ever gets executed.
Failure() function never gets called:

WebSocket <- NewSocket( "ReceiveData" );
WebSocket.SetLostConnFunc( "Failure" );
WebSocket.SetNewConnFunc( "Connected" );
WebSocket.Start( LISTEN_PORT, 64 );


Connected() function never gets called:

WebSocket <- NewSocket( "ReceiveData" );
WebSocket.SetNewConnFunc( "Connected" );
WebSocket.SetLostConnFunc( "Failure" );
WebSocket.Start( LISTEN_PORT, 64 );
No tags attached.
Issue History
2016-11-13 13:00RhytzNew Issue
2016-11-13 13:00RhytzStatusnew => assigned
2016-11-13 13:00RhytzAssigned To => VRocker
2016-11-13 14:00RhytzNote Added: 0000118

Notes
(0000118)
Rhytz   
2016-11-13 14:00   
Shouldn't have been marked as "Crash", but rather Bug or Script problem.