trancos30 / subethasmtp

Automatically exported from code.google.com/p/subethasmtp
Other
1 stars 0 forks source link

Restart of the SMTPServer by calling stop-start #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Creat Wiser instance and start the server by calling wiser.start().
2. Call wiser.stop() to stop the SMTPServer.
3. Call wiser.start() on the same instance to start the SMTPServer again.

What is the expected output? What do you see instead?
The SMTPServer should be started again, but the second call of the 
wiser.start() throws the "java.lang.IllegalStateException: SMTPServer can only 
be started once", because is started flag is not set to false in the 
stop-method.

What version of the product are you using? On what operating system?
3.1.7

Original issue reported on code.google.com by beast.sh...@gmail.com on 3 Feb 2015 at 12:28