FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
478 stars 163 forks source link

Fix server hang on dispose ... #12

Closed gabecook closed 7 years ago

gabecook commented 7 years ago

because listenerTaskEvent.Set() is called before the event's WaitOne in ExecuteServerListener.

The latest revision fixed my GUI lockup. However now my unit tests hang because of the aforementioned issue. The change here fixed it.

There may be a better way to accomplish this, if so I'm open to suggestions. Please just let me know.

Thanks, Gabe

fubar-coder commented 7 years ago

Looks good to me. Some ugly problems require ugly solutions 😁

gabecook commented 7 years ago

Thanks Mark!

fubar-coder commented 7 years ago

The new version should be available now