client.h add some exception guards

These are one shot operations anyway,
and allowing user exceptions to propagate
to core PVA isn't helpful.
This commit is contained in:
Michael Davidsaver
2018-10-07 13:29:11 -07:00
parent 53b95dd336
commit 165313d8f5
2 changed files with 10 additions and 2 deletions

View File

@@ -50,7 +50,11 @@ struct Getter : public pvac::detail::CallbackStorage,
pvac::ClientChannel::GetCallback *C=cb;
cb = 0;
CallbackUse U(G);
C->getDone(event);
try {
C->getDone(event);
} catch(std::exception& e) {
LOG(pva::logLevelInfo, "Lost exception during getDone(): %s", e.what());
}
}
virtual std::string name() const OVERRIDE FINAL

View File

@@ -54,7 +54,11 @@ struct Putter : public pvac::detail::CallbackStorage,
pvac::ClientChannel::PutCallback *C=cb;
cb = 0;
CallbackUse U(G);
C->putDone(event);
try {
C->putDone(event);
} catch(std::exception& e) {
LOG(pva::logLevelInfo, "Lost exception during putDone(): %s", e.what());
}
}
virtual std::string name() const OVERRIDE FINAL