mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
bugfix possible panic
This commit is contained in:
parent
109e245264
commit
b6d652582c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user