Commit 5f29d20f authored by Michael Tross's avatar Michael Tross

avoid pushing values too early

wait until vdsm session is established
parent abd8f724
......@@ -312,9 +312,9 @@ int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
}
if (!dev->present) {
if (!dev->presentSignaled) {
if (dev->presentSignaled) {
dsvdc_device_vanished(handle, dev->dsuidstring);
dev->presentSignaled = true;
dev->presentSignaled = false;
continue;
}
} else {
......@@ -326,7 +326,7 @@ int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
}
// Test first element if there are new values
if (dev->mod->values[0].last_reported >= dev->mod->values[0].last_query) {
if (dev->announced && (dev->mod->values[0].last_reported >= dev->mod->values[0].last_query)) {
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment