File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ Property::Property()
39
39
, _update_policy{UpdatePolicy::OnChange}
40
40
, _has_been_updated_once{false }
41
41
, _has_been_modified_in_callback{false }
42
+ , _has_been_appended_but_not_sended{false }
42
43
, _last_updated_millis{0 }
43
44
, _update_interval_millis{0 }
44
45
, _last_local_change_timestamp{0 }
@@ -106,6 +107,10 @@ bool Property::shouldBeUpdated() {
106
107
return true ;
107
108
}
108
109
110
+ if (_has_been_appended_but_not_sended) {
111
+ return true ;
112
+ }
113
+
109
114
if (_has_been_modified_in_callback) {
110
115
return true ;
111
116
}
@@ -126,6 +131,13 @@ void Property::requestUpdate()
126
131
_update_requested = true ;
127
132
}
128
133
134
+ void Property::appendCompleted ()
135
+ {
136
+ if (_has_been_appended_but_not_sended) {
137
+ _has_been_appended_but_not_sended = false ;
138
+ }
139
+ }
140
+
129
141
void Property::execCallbackOnChange () {
130
142
if (_update_callback_func != nullptr ) {
131
143
_update_callback_func ();
Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ class Property
174
174
void setTimestamp (unsigned long const timestamp);
175
175
bool shouldBeUpdated ();
176
176
void requestUpdate ();
177
+ void appendCompleted ();
177
178
void execCallbackOnChange ();
178
179
void execCallbackOnSync ();
179
180
void setLastCloudChangeTimestamp (unsigned long cloudChangeTime);
@@ -229,7 +230,8 @@ class Property
229
230
230
231
UpdatePolicy _update_policy;
231
232
bool _has_been_updated_once,
232
- _has_been_modified_in_callback;
233
+ _has_been_modified_in_callback,
234
+ _has_been_appended_but_not_sended;
233
235
/* Variables used for UpdatePolicy::TimeInterval */
234
236
unsigned long _last_updated_millis,
235
237
_update_interval_millis;
You can’t perform that action at this time.
0 commit comments