Switch to shared pointer to hopefully avoid crash
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user