Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

making tests pass by not trying to close null

  • Loading branch information...
commit 2d809d8562a5f48d33c2622c21a5b22bb4824302 1 parent ff470c6
@ransombriggs authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/dumbster/smtp/SimpleSmtpServer.java
View
4 src/com/dumbster/smtp/SimpleSmtpServer.java
@@ -147,7 +147,9 @@ public synchronized void stop() {
stopped = true;
try {
// Kick the server accept loop
- serverSocket.close();
+ if (serverSocket != null) {
+ serverSocket.close();
+ }
} catch (IOException e) {
// Ignore
}
Please sign in to comment.
Something went wrong with that request. Please try again.