diff options
| author | Eskil Q <eskilq@kth.se> | 2020-12-27 22:45:56 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2020-12-27 22:45:56 +0100 |
| commit | 4613c6b269d7842645d050bb3482cf7efcfa1946 (patch) | |
| tree | 1aa9bdb912e5d548eab9741a76b93bedeb1a4853 /mumd/src/state.rs | |
| parent | f063ae0abc37952d718be961309a53c88ad2e0e0 (diff) | |
| parent | 6b7de396fd8681f1f55c786225fe7aebfccaf842 (diff) | |
| download | mum-4613c6b269d7842645d050bb3482cf7efcfa1946.tar.gz | |
Merge branch 'tokio-1.0' into main
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); } |
