1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-25 05:40:29 +01:00

Do not spawn WS thread if it's disabled

Dieser Commit ist enthalten in:
Miroslav Prasil 2018-10-15 15:08:15 +01:00
Ursprung 9ecc98c3cc
Commit 2e7fa6440b

Datei anzeigen

@ -360,12 +360,14 @@ pub fn start_notification_server() -> WebSocketUsers {
let factory = WSFactory::init(); let factory = WSFactory::init();
let users = factory.users.clone(); let users = factory.users.clone();
thread::spawn(move || { if CONFIG.websocket_enabled {
WebSocket::new(factory) thread::spawn(move || {
.unwrap() WebSocket::new(factory)
.listen(&CONFIG.websocket_url) .unwrap()
.unwrap(); .listen(&CONFIG.websocket_url)
}); .unwrap();
});
}
users users
} }