aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-21 10:13:59 -0500
committerJP Dillingham <jp@dillingham.me>2026-06-21 10:14:13 -0500
commit28fa7202724da10075dbddc3244d5d5528b4bdad (patch)
tree189ff962d5125fe2526e4f79dccb009379725fdf /src/web
parent6f888f8d8590f6bbabad4b51c73fcba3b76bc4fd (diff)
downloadslskd-28fa7202724da10075dbddc3244d5d5528b4bdad.tar.gz
stop signalr hubs when logging out
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/src/components/App.jsx b/src/web/src/components/App.jsx
index 0c0ca5a5..9839bf35 100644
--- a/src/web/src/components/App.jsx
+++ b/src/web/src/components/App.jsx
@@ -278,6 +278,10 @@ class App extends Component {
logout = () => {
session.logout();
+
+ this.hubConnections?.appHub?.stop();
+ this.hubConnections?.metricsHub?.stop();
+
this.setState({ login: { ...initialState.login } });
};