Switch to shared pointer to hopefully avoid crash

This commit is contained in:
2026-03-30 12:18:41 +02:00
parent 3d8dd3127d
commit 089b630538
4 changed files with 8 additions and 8 deletions

View File

@@ -36,10 +36,10 @@ void RivalLayer::deactivate()
rivals_.reset();
}
void RivalLayer::rival_cb(Rivals::UniquePtr msg)
void RivalLayer::rival_cb(Rivals::SharedPtr msg)
{
if (msg->point.size() != 0 || debounce_++ > 10) {
rivals_ = std::move(msg);
rivals_ = msg;
debounce_ = 0;
}
}