Catch WebApplicationException inside WebsocketConnection.
// FREEBIE
This commit is contained in:
parent
7ed5eb22ec
commit
fd8e8d1475
|
@ -25,6 +25,7 @@ import org.whispersystems.websocket.messages.WebSocketResponseMessage;
|
|||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.ws.rs.WebApplicationException;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -136,7 +137,7 @@ public class WebSocketConnection implements DispatchChannel {
|
|||
receiptSender.sendReceipt(account, message.getSource(), message.getTimestamp(),
|
||||
message.hasRelay() ? Optional.of(message.getRelay()) :
|
||||
Optional.<String>absent());
|
||||
} catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException e) {
|
||||
} catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException | WebApplicationException e) {
|
||||
logger.warn("sendDeliveryReceiptFor", e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue