Skip to content

Commit

Permalink
Fixed embarrassing typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDudeFromCI authored May 11, 2020
1 parent 0820f2d commit 4cdba3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/whg/we/external/ServerSocketAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ public void close() throws IOException
@Override
public void start(int port) throws IOException
{
if (isClosed())
throw new IOException("Server socket not open!");
if (!isClosed())
throw new IOException("Server already open!");

socket = new ServerSocket(port);
}

@Override
Expand Down

0 comments on commit 4cdba3e

Please sign in to comment.