Skip to content

Commit 988091f

Browse files
committed
Fixed missing null i/o handler bug
1 parent ae18c9e commit 988091f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/red5/net/websocket/WebSocketTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public void afterPropertiesSet() throws Exception {
8989
sessionConf.setReadBufferSize(receiveBufferSize);
9090
// close sessions when the acceptor is stopped
9191
acceptor.setCloseOnDeactivation(true);
92-
acceptor.setHandler(ioHandler);
9392
// requested maximum length of the queue of incoming connections
9493
acceptor.setBacklog(64);
9594
acceptor.setReuseAddress(true);
@@ -98,6 +97,7 @@ public void afterPropertiesSet() throws Exception {
9897
ioHandler = new WebSocketHandler();
9998
}
10099
log.trace("I/O handler: {}", ioHandler);
100+
acceptor.setHandler(ioHandler);
101101
DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
102102
// if handling wss init the config
103103
SslFilter sslFilter = null;

0 commit comments

Comments
 (0)