mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
don't crash on mode lock
This commit is contained in:
parent
f10fa309e5
commit
83c03f5a80
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ impl Modes {
|
|||
|
||||
/// Get a mode by name.
|
||||
pub fn get (&self, name: impl AsRef<str>) -> Option<Arc<Mode>> {
|
||||
self.0.try_read().unwrap().get(name.as_ref()).cloned()
|
||||
self.0.read().get(name.as_ref()).cloned()
|
||||
}
|
||||
|
||||
/// Run something for each mode.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue