diff options
| author | Eskil Q <eskilq@kth.se> | 2020-12-25 15:24:19 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2020-12-25 15:24:19 +0100 |
| commit | 48ce14064d355ad0ed89e59b1d4b10256c85be6a (patch) | |
| tree | 20a1d9010d424010e78173c76ca73e648be6113d /mumd/src/state.rs | |
| parent | 58947a7a3acaa1ae04887723643a49db76479f00 (diff) | |
| download | mum-48ce14064d355ad0ed89e59b1d4b10256c85be6a.tar.gz | |
initial tokio 1.0 commit
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index aba0931..85e5449 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -321,7 +321,7 @@ impl State { self.server = Some(server); self.phase_watcher .0 - .broadcast(StatePhase::Connecting) + .send(StatePhase::Connecting) .unwrap(); let socket_addr = match (host.as_ref(), port) @@ -335,7 +335,7 @@ impl State { } }; self.connection_info_sender - .broadcast(Some(ConnectionInfo::new( + .send(Some(ConnectionInfo::new( socket_addr, host, accept_invalid_cert, @@ -366,7 +366,7 @@ impl State { self.phase_watcher .0 - .broadcast(StatePhase::Disconnected) + .send(StatePhase::Disconnected) .unwrap(); self.audio.play_effect(NotificationEvents::ServerDisconnect); now!(Ok(None)) @@ -581,7 +581,7 @@ impl State { pub fn initialized(&self) { self.phase_watcher .0 - .broadcast(StatePhase::Connected) + .send(StatePhase::Connected) .unwrap(); self.audio.play_effect(NotificationEvents::ServerConnect); } |
