mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-12 19:20:32 +00:00
Pass msg by reference isntead of by value
This commit is contained in:
parent
5ef12c8244
commit
132f85079a
@ -810,7 +810,7 @@ private:
|
||||
inline void write(const Rtcm_Message& msg)
|
||||
{
|
||||
io_context_.post(
|
||||
[this, msg]() {
|
||||
[this, &msg]() {
|
||||
bool write_in_progress = !write_msgs_.empty();
|
||||
write_msgs_.push_back(msg);
|
||||
if (!write_in_progress)
|
||||
|
Loading…
Reference in New Issue
Block a user