From e146c2606fd51b1e720e9351abd6a0a788d39849 Mon Sep 17 00:00:00 2001 From: fufesou Date: Wed, 29 Nov 2023 23:19:29 +0800 Subject: [PATCH] fix, is_subed() Signed-off-by: fufesou --- src/server/service.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/service.rs b/src/server/service.rs index 78a637776..e77889ecc 100644 --- a/src/server/service.rs +++ b/src/server/service.rs @@ -99,6 +99,7 @@ impl> Service for ServiceTmpl { fn is_subed(&self, id: i32) -> bool { self.0.read().unwrap().subscribes.get(&id).is_some() + || self.0.read().unwrap().new_subscribes.get(&id).is_some() } fn on_subscribe(&self, sub: ConnInner) {