avoid overflow of update counter on task interfaces

This commit is contained in:
andreas 2023-10-28 19:16:17 +02:00
parent 14dcc75271
commit 09eb59510d
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ class TaskInterfacesStorage{
auto vit=values.find(name);
if (vit != values.end()){
vit->second.updates++;
if (vit->second.updates < 0){
vit->second.updates=0;
}
vit->second.ptr=v;
}
else{