mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 15:46:47 +00:00
Send end of queue message after connection drain
// FREEBIE
This commit is contained in:
1 parent
6b84f54611
commit
f79a0a8603
1 file changed
+4
@@ -190,5 +190,9 @@ public class WebSocketConnection implements DispatchChannel {
|
||||
|
||||
sendMessage(builder.build(), Optional.of(message.getId()), !iterator.hasNext() && messages.hasMore());
|
||||
}
|
||||
|
||||
if (!messages.hasMore()) {
|
||||
client.sendRequest("PUT", "/api/v1/queue/empty", null, Optional.<byte[]>absent());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user