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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user