Skip to content

Commit 3ffeda5

Browse files
authored
Fixed Websocket init issue
1 parent a0c3c9f commit 3ffeda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/javawebstack/http/router/undertow/UndertowHTTPSocketServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void start() throws IOException {
4343
handler.handle(new UndertowHTTPSocket(httpServerExchange1, inputStream, outputStream));
4444
});
4545
httpServerExchange.putAttachment(WebSocketVersion.ATTACHMENT_KEY, WebSocketVersion.V13);
46-
if(!WebSocketUtil.accept(new UndertowHTTPSocket(httpServerExchange, null, null), null))
46+
if(WebSocketUtil.accept(new UndertowHTTPSocket(httpServerExchange, null, null), null))
4747
return;
4848
httpServerExchange.endExchange();
4949
} else {

0 commit comments

Comments
 (0)