bugfix possible panic

This commit is contained in:
Mike Dilger 2023-01-15 14:44:03 +13:00
parent 109e245264
commit b6d652582c

View File

@ -87,7 +87,7 @@ impl Minion {
.get_handle_by_id(&subid.0)
.unwrap_or_else(|| "_".to_owned());
let close: bool = &handle[0..5] == "temp_";
let close: bool = handle.starts_with("temp_");
// Update the matching subscription
match self.subscriptions.get_mut_by_id(&subid.0) {