Session.GetFiles when connection is lost
Hello,
I have a software that, under user action, creates a thread and this thread calls to
But, in this situation, if the connection with the server is lost, for example by stopping the server or by disconnecting the network, the thread continues living because
I assume that it is not the expected result, but it is the one I'm experiencing. Can anyone confirm this is not normal? Can anyone clarify what should happen and what may is happening?
Thanks for your help.
I have a software that, under user action, creates a thread and this thread calls to
session.GetFiles
. While performing this process, everything works fine.
But, in this situation, if the connection with the server is lost, for example by stopping the server or by disconnecting the network, the thread continues living because
session.GetFiles
doesn't finish. Also, if I try to call session.Close
, this calling also is blocked and never ends.
I assume that it is not the expected result, but it is the one I'm experiencing. Can anyone confirm this is not normal? Can anyone clarify what should happen and what may is happening?
Thanks for your help.