mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-26 09:28:03 +01:00
Catch WebApplicationException inside WebsocketConnection.
// FREEBIE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user