Catch Throwable rather than Exception when sending heartbeat.

Signed-off-by: Carpenter Lee <hooleeucas@163.com>
This commit is contained in:
Carpenter Lee 2018-12-15 09:05:28 +08:00
parent c7b5653249
commit 84934b8679
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class HeartbeatSenderInitFunc implements InitFunc {
public void run() {
try {
sender.sendHeartbeat();
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
RecordLog.info("[HeartbeatSender] Send heartbeat error", e);
}