Skip to content

Commit

Permalink
Updates for 1.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain committed Nov 26, 2021
1 parent 975c5cb commit 9858a2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.red5</groupId>
<artifactId>red5-parent</artifactId>
<version>1.2.8</version>
<version>1.2.10</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>red5-server</artifactId>
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/org/red5/server/service/ShutdownServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,16 @@ public void start() {
log.warn("Exception caught when trying to listen on port {} or listening for a connection", port, t);
}
}
} catch (BindException be) {
} catch (Exception be) {
log.error("Cannot bind to port: {}, ensure no other instances are bound or choose another port", port, be);
shutdownOrderly();
} finally {
if (serverSocket != null) {
serverSocket.close();
try {
serverSocket.close();
} catch (IOException ioe) {
log.warn("IOException at close", ioe);
}
}
}
}
Expand Down

0 comments on commit 9858a2e

Please sign in to comment.