Skip to content

Commit

Permalink
7.2.20
Browse files Browse the repository at this point in the history
FIX: Cannot invoke "java.net.Socket.setSoTimeout(int)" because "this.socket" is null
  • Loading branch information
Osiris-Team committed May 12, 2023
1 parent f8004bb commit 9fbb3f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.osiris.autoplug.client</groupId>
<artifactId>autoplug-client</artifactId>
<version>7.2.19</version>
<version>7.2.20</version>
<packaging>jar</packaging>

<name>AutoPlug-Client</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public synchronized boolean open() throws Exception {
}

private synchronized int _open() throws Exception {
socket.setSoTimeout(60000);
isClosing.set(false);
errorCode = 0;
close();
Expand Down Expand Up @@ -144,6 +143,7 @@ private synchronized int _open() throws Exception {
}

AL.debug(this.getClass(), "[CON_TYPE: " + conType + "] Authenticating server with Server-Key...");
socket.setSoTimeout(60000);
out.writeUTF(serverKey); // Send server key
out.writeByte(conType); // Send connection type
this.errorCode = in.readByte(); // Get response
Expand Down

0 comments on commit 9fbb3f9

Please sign in to comment.