BgReading.copyFrom: don't update local data.

Like the 'valid' flag, which is not copied and is not synced with
NS, don't sync sourcePlugin or isFiltered.
Otherwise there might be a race condition if the NS-roundtrip of a
locally received BG updates the sourcePlugin field to null,
thus leaving no values for the loop to loop with.
This commit is contained in:
Johannes Mockenhaupt 2018-06-25 23:02:58 +02:00
parent 069f0fb7b1
commit 50ffebc679
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -152,8 +152,6 @@ public class BgReading implements DataPointWithLabelInterface {
raw = other.raw;
direction = other.direction;
_id = other._id;
sourcePlugin = other.sourcePlugin;
isFiltered = other.isFiltered;
}
// ------------------ DataPointWithLabelInterface ------------------