Skip to content

Commit 4cdba3e

Browse files
Fixed embarrassing typo.
1 parent 0820f2d commit 4cdba3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/net/whg/we/external/ServerSocketAPI.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ public void close() throws IOException
1919
@Override
2020
public void start(int port) throws IOException
2121
{
22-
if (isClosed())
23-
throw new IOException("Server socket not open!");
22+
if (!isClosed())
23+
throw new IOException("Server already open!");
2424

25+
socket = new ServerSocket(port);
2526
}
2627

2728
@Override

0 commit comments

Comments
 (0)