Skip to content

Commit 43d8d1a

Browse files
author
Paulsen
committed
v1.1.4 hotfix
1 parent fccd969 commit 43d8d1a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ooo/paulsen/demo/Demo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Demo() {
4242
PInstance p = new PInstance(8123);
4343
} catch (BindException e) {
4444
System.out.println("Already runs");
45-
JOptionPane.showMessageDialog(null,"Port 6434 already taken by another Process","Instance already running",JOptionPane.INFORMATION_MESSAGE);
45+
JOptionPane.showMessageDialog(null,"Port 8123 already taken by another Process","Instance already running",JOptionPane.INFORMATION_MESSAGE);
4646
System.exit(0);
4747
} catch (IOException e) {
4848
throw new RuntimeException(e);

src/ooo/paulsen/io/serial/PSerialConnection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ public boolean disconnect() {
147147
if (isConnected) {
148148
port.closePort();
149149
try {
150-
listenerThread.interrupt();
150+
if (listenerThread != null)
151+
listenerThread.interrupt();
151152
} catch (SecurityException e) {
152153
System.err.println("[PSerialConnection] :: Couldn't interrupt thread");
153154
}

0 commit comments

Comments
 (0)