Catch WebApplicationException inside WebsocketConnection.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-04-16 11:33:16 -07:00
parent 7ed5eb22ec
commit fd8e8d1475
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import org.whispersystems.websocket.messages.WebSocketResponseMessage;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import javax.ws.rs.WebApplicationException;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
@ -136,7 +137,7 @@ public class WebSocketConnection implements DispatchChannel {
receiptSender.sendReceipt(account, message.getSource(), message.getTimestamp(), receiptSender.sendReceipt(account, message.getSource(), message.getTimestamp(),
message.hasRelay() ? Optional.of(message.getRelay()) : message.hasRelay() ? Optional.of(message.getRelay()) :
Optional.<String>absent()); Optional.<String>absent());
} catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException e) { } catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException | WebApplicationException e) {
logger.warn("sendDeliveryReceiptFor", e); logger.warn("sendDeliveryReceiptFor", e);
} }
} }