Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StopAsync immediately after StartAsync fails #75

Closed
twodogmbh opened this issue Jul 30, 2019 · 2 comments
Closed

StopAsync immediately after StartAsync fails #75

twodogmbh opened this issue Jul 30, 2019 · 2 comments
Assignees
Labels

Comments

@twodogmbh
Copy link

twodogmbh commented Jul 30, 2019

When on the FTP server the method StopAsync is called immediately after StartAsync, the method fails with the following exception:

---> (Inner Exception #0) System.InvalidOperationException: Status must be Running, Stopped, or Paused, but was ReadyToRun.
   at FubarDev.FtpServer.Networking.PausableFtpService.<StopAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at FubarDev.FtpServer.FtpServer.<StopAsync>d__36.MoveNext()<---

In my opinion, it should also be possible to stop the FTP server in state "ReadyToRun".

The same issue occurs also when calling PauseAsync immediately after StartAsync.

@fubar-coder fubar-coder self-assigned this Jul 30, 2019
@fubar-coder
Copy link
Contributor

This is a though problem for me and I cannot reproduce this easily, because it's a race condition. Will try on a different machine...

fubar-coder added a commit that referenced this issue Jul 30, 2019
This is a blind fix, because I cannot reproduce this problem.
@fubar-coder
Copy link
Contributor

Version 3.0.1 should be out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants