Skip to content

Commit

Permalink
msg: async: time_events may be lost after correcting the system clock.
Browse files Browse the repository at this point in the history
list changed[utime_t()] will be overwritten sinces utime_t() is allways zero.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
  • Loading branch information
Yan-waller committed Mar 12, 2016
1 parent 7f1d839 commit 1182781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/async/Event.cc
Expand Up @@ -307,7 +307,7 @@ int EventCenter::process_time_events()
map<utime_t, list<TimeEvent> > changed;
for (map<utime_t, list<TimeEvent> >::iterator it = time_events.begin();
it != time_events.end(); ++it) {
changed[utime_t()].swap(it->second);
changed[utime_t()].splice(changed[utime_t()].end(), it->second);
}
time_events.swap(changed);
}
Expand Down

0 comments on commit 1182781

Please sign in to comment.