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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user