GH-3744: Fix ServerWebSocketContainer.stop()

Fixes https://github.com/spring-projects/spring-integration/issues/3744

The `ServerWebSocketContainer.stop()` accidentally calls `this.handshakeHandler.start()`

**Cherry-pick to `5.5.x`**
This commit is contained in:
Sorie
2022-03-09 22:54:42 +08:00
committed by Artem Bilan
parent e80c0ab919
commit bbc4e1e9c0

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2021 the original author or authors.
* Copyright 2014-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -232,7 +232,7 @@ public class ServerWebSocketContainer extends IntegrationWebSocketContainer
@Override
public void stop() {
if (isRunning()) {
((Lifecycle) this.handshakeHandler).start();
((Lifecycle) this.handshakeHandler).stop();
}
}