Skip to content

Commit f65e4bd

Browse files
committed
Remove redundant lock causing deadlock when listing keybinds
1 parent f0e98b5 commit f65e4bd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

library/modules/Hotkey.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ std::vector<std::string> HotkeyManager::listKeybinds(const KeySpec& spec) {
260260
}
261261

262262
std::vector<std::string> HotkeyManager::listKeybinds(std::string keyspec) {
263-
std::lock_guard<std::mutex> l(lock);
264263
std::optional<KeySpec> spec_opt = KeySpec::parse(std::move(keyspec));
265264
if (!spec_opt.has_value())
266265
return {};

0 commit comments

Comments
 (0)