Skip to content

Commit

Permalink
Merge pull request zeromq#299 from kevinkreiser/master
Browse files Browse the repository at this point in the history
Setter for uncaughtExceptionHandler in ZBeacon Threads
  • Loading branch information
c-rack committed Nov 2, 2015
2 parents 698d450 + 7b84836 commit adc0550
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/zeromq/ZBeacon.java
Expand Up @@ -71,6 +71,12 @@ public ZBeacon(String host, int port, byte[] beacon, boolean ignoreLocalAddress)
broadcastClient.setDaemon(true);
}

public void setUncaughtExceptionHandlers(Thread.UncaughtExceptionHandler clientHandler, Thread.UncaughtExceptionHandler serverHandler)
{
broadcastClient.setUncaughtExceptionHandler(clientHandler);
broadcastServer.setUncaughtExceptionHandler(serverHandler);
}

public void start()
{
if (listener != null) {
Expand Down

0 comments on commit adc0550

Please sign in to comment.