« Back to TCL-API

Handling disconnect by multiple tcl scrips

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
 
How does TCL handle ev_disconnected events when there are two TCL scripts involved? Lets say the first tcl script does an handoff to another tcl script, but for some reason the connection is disconnected but we're still in the execution of the 2nd tcl script. This one catches the ev_disconnected event. Will the 1st one also receive this event? Or does it receive the ev_returned event?

 
Thanks
 
Grant

Hi Grant,

The 1st script will not catch ev_disconnected event if it is occured in 2nd script. the 1st script will receive ev_returned only when you call "handoff return" command in second script.

Thanks,
Raghavendra

Hello,

Thank you. That's what I thought.

Regards,

Grant