Skip to content

Commit

Permalink
Have notifierConveyor trap and drop any exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
anjohnson committed Nov 17, 2020
1 parent 23770d6 commit 5565852
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/ca/notifierConveyor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* in file LICENSE that is included with this distribution.
*/

#include <iostream>

#include "notifierConveyor.h"

using epics::pvData::Lock;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5565852

Please sign in to comment.