Skip to content

Commit 9858a2e

Browse files
committed
Updates for 1.2.10
1 parent 975c5cb commit 9858a2e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>1.2.8</version>
6+
<version>1.2.10</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-server</artifactId>

src/main/java/org/red5/server/service/ShutdownServer.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,16 @@ public void start() {
183183
log.warn("Exception caught when trying to listen on port {} or listening for a connection", port, t);
184184
}
185185
}
186-
} catch (BindException be) {
186+
} catch (Exception be) {
187187
log.error("Cannot bind to port: {}, ensure no other instances are bound or choose another port", port, be);
188188
shutdownOrderly();
189189
} finally {
190190
if (serverSocket != null) {
191-
serverSocket.close();
191+
try {
192+
serverSocket.close();
193+
} catch (IOException ioe) {
194+
log.warn("IOException at close", ioe);
195+
}
192196
}
193197
}
194198
}

0 commit comments

Comments
 (0)