aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state.rs
diff options
context:
space:
mode:
authorEskil Q <eskilq@kth.se>2021-01-01 14:31:08 +0100
committerEskil Q <eskilq@kth.se>2021-01-01 14:31:08 +0100
commit53d1c82eb81b0acb696d2d60ecb8db3fab488105 (patch)
treec62d48474596a3ab34bef400c1a2291bfe73b000 /mumd/src/state.rs
parent9777219aa26dc64c0a3dc3d9d2023b8a1c4295fb (diff)
parent4613c6b269d7842645d050bb3482cf7efcfa1946 (diff)
downloadmum-53d1c82eb81b0acb696d2d60ecb8db3fab488105.tar.gz
Merge branch 'main' into noise-gate
Diffstat (limited to 'mumd/src/state.rs')
-rw-r--r--mumd/src/state.rs8
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);
}