Skip to content

Commit 523c3af

Browse files
author
kasemir
committed
PVA: Log any exception in sender and receiver
'Exception' misses issues like missing bouncyastle lib, while 'Throwable' will
1 parent efcd7c0 commit 523c3af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/pva/src/main/java/org/epics/pva/common/TCPHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private Void sender()
214214
send(send_buffer);
215215
}
216216
}
217-
catch (Exception ex)
217+
catch (Throwable ex)
218218
{
219219
logger.log(Level.WARNING, Thread.currentThread().getName() + " exits because of error", ex);
220220
}
@@ -331,7 +331,7 @@ private Void receiver()
331331
receive_buffer.compact();
332332
}
333333
}
334-
catch (Exception ex)
334+
catch (Throwable ex)
335335
{
336336
if (running)
337337
logger.log(Level.WARNING, Thread.currentThread().getName() + " exits because of error", ex);

0 commit comments

Comments
 (0)