Have notifierConveyor trap and drop any exceptions

This commit is contained in:
Andrew Johnson
2020-11-17 15:15:21 -06:00
committed by mdavidsaver
parent f9c40e96cf
commit 8b3a057a69

View File

@ -4,6 +4,8 @@
* in file LICENSE that is included with this distribution.
*/
#include <iostream>
#include "notifierConveyor.h"
using epics::pvData::Lock;
@ -65,7 +67,15 @@ void NotifierConveyor::run()
NotifierClientPtr client(notification->client.lock());
if (client) {
the.unlock();
client->notifyClient();
try { client->notifyClient(); }
catch (std::exception &e) {
std::cerr << "Exception from notifyClient(): "
<< e.what() << std::endl;
}
catch (...) {
std::cerr << "Unknown exception from notifyClient()"
<< std::endl;
}
if (work) {
the.lock();
stopping = halt;