Handle simultaneous subscription to diagnostic messages.
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 30 Mar 2017 15:23:02 +0000 (17:23 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 11 Apr 2017 10:41:42 +0000 (12:41 +0200)
commit0ebc7362ff32637ac839b0b5adf9678277c9c332
tree0fd259a41aaca72aa32208af9b1964bfa1ab6dfb
parent46d396e04947a76756739576a29c8369f8cd0c50
Handle simultaneous subscription to diagnostic messages.

Delay new recurring requests if there are already existing in flight and
cleanup active request to correctly set in_flight_ flag to false else new
request can't be launched as there is always an old one considered running...

Modify a little bit DEBUG message and cleanup useless code.

Change-Id: I39f865bbc6d00188d3cddd1d81437b9e3ca51269
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/diagnostic/active-diagnostic-request.cpp
src/diagnostic/diagnostic-manager.cpp