mirror of
https://git.alemi.dev/mumble-stats-api.git
synced 2024-11-22 16:04:49 +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 {
|
while let Ok(event) = sub.recv().await {
|
||||||
if let Err(e) = match event {
|
if let Err(e) = match event {
|
||||||
session::SessionEvent::AddUser(user) => {
|
session::SessionEvent::AddUser(user) => {
|
||||||
|
if users.contains_key(&user.session) { continue }
|
||||||
users.insert(user.session, user.name.clone());
|
users.insert(user.session, user.name.clone());
|
||||||
client
|
client
|
||||||
.post(&target)
|
.post(&target)
|
||||||
|
|
Loading…
Reference in a new issue