Merge pull request #6563 from fufesou/fix/is_subed

fix, is_subed()
This commit is contained in:
RustDesk 2023-11-29 23:25:34 +08:00 committed by GitHub
commit ead200ea5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ impl<T: Subscriber + From<ConnInner>> Service for ServiceTmpl<T> {
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) {