mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Fix rare segfault when destroying workspace
This commit is contained in:
parent
5f29e5a5e8
commit
d3be9a7363
@ -104,7 +104,7 @@ void Workspaces::remove_workspace(int id) {
|
|||||||
[&](std::unique_ptr<Workspace> &x) { return x->id() == id; });
|
[&](std::unique_ptr<Workspace> &x) { return x->id() == id; });
|
||||||
|
|
||||||
if (workspace == workspaces_.end()) {
|
if (workspace == workspaces_.end()) {
|
||||||
spdlog::warn("Can't find workspace with id {}", workspace->get()->id());
|
spdlog::warn("Can't find workspace with id {}", id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user