Connected event never gets fired - WeOnlyDo Discussion board

Connected event never gets fired (wodSFTP / wodSFTP.NET / wodSFTPdll)

by wodSupport, Saturday, June 02, 2018, 20:57 (2155 days ago) @ Kiril Malakhov

Hi Kiril,

it is dangerous to use events together with blocking mode - especially to execute blocking methods within events which are fired by other blocking command. Connect method blocks, fires event, you call ListNames who blocks again - as a result everything could block.

You don't need events when blocking is used, since you can move code from without Connected event just to line after Connect method - since that line will block until it completes.

Does your code after Connect method call ever is reached? If so, component did connect. Can you check?

Jasmine.


Complete thread: