aboutsummaryrefslogtreecommitdiffstats
path: root/mumd
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-06-11 17:25:02 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-06-11 17:25:02 +0200
commit904a27493eb3e292d9e2bdeb71ff35f14e6919b3 (patch)
treed518a68fabf1b32b5b5dde63d30012923a511ec4 /mumd
parent89138b83c231259575970338eb719895bde881d9 (diff)
parent271d95b60b9a2bacbb8357c89b84bb1461228dbb (diff)
downloadmum-904a27493eb3e292d9e2bdeb71ff35f14e6919b3.tar.gz
Merge remote-tracking branch 'origin/login-status'
Diffstat (limited to 'mumd')
-rw-r--r--mumd/src/state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs
index 2cfdfb1..37dd6a2 100644
--- a/mumd/src/state.rs
+++ b/mumd/src/state.rs
@@ -605,7 +605,8 @@ pub fn handle_command(
accept_invalid_cert,
)))
.unwrap();
- at!(TcpEvent::Connected, |res| {
+ let state = Arc::clone(&og_state);
+ at!(TcpEvent::Connected, move |res| {
//runs the closure when the client is connected
if let TcpEventData::Connected(res) = res {
Box::new(iter::once(res.map(|msg| {
@@ -615,6 +616,7 @@ pub fn handle_command(
} else {
None
},
+ server_state: state.read().unwrap().server.as_ref().unwrap().into(),
})
})))
} else {