mirror of
https://git.alemi.dev/mumble-stats-api.git
synced 2024-11-14 04:29:19 +01:00
fix: don't repeat join event
This commit is contained in:
parent
df185e2517
commit
14bb965439
1 changed files with 1 additions and 0 deletions
|
@ -125,6 +125,7 @@ async fn handle_ntfy(target: String, mut sub: broadcast::Receiver<session::Sessi
|
|||
while let Ok(event) = sub.recv().await {
|
||||
if let Err(e) = match event {
|
||||
session::SessionEvent::AddUser(user) => {
|
||||
if users.contains_key(&user.session) { continue }
|
||||
users.insert(user.session, user.name.clone());
|
||||
client
|
||||
.post(&target)
|
||||
|
|
Loading…
Reference in a new issue