diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-05 13:09:23 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-05 13:09:23 +0100 |
| commit | 6c59a37fbfce72a92581b362048b509dcb67dae1 (patch) | |
| tree | 4e618c87dec36791b17c993613c67c4666146785 /mumd/src/state.rs | |
| parent | 00969263678bf0626de8229fd21b1d5d183b62e8 (diff) | |
| download | mum-6c59a37fbfce72a92581b362048b509dcb67dae1.tar.gz | |
compare udp ping responses to sent values
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 4e8a886..2ed73b2 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -578,11 +578,15 @@ impl State { } } - pub fn initialized(&self) { + pub fn broadcast_phase(&self, phase: StatePhase) { self.phase_watcher .0 - .send(StatePhase::Connected(VoiceStreamType::UDP)) + .send(phase) .unwrap(); + } + + pub fn initialized(&self) { + self.broadcast_phase(StatePhase::Connected(VoiceStreamType::TCP)); self.audio.play_effect(NotificationEvents::ServerConnect); } |
