aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
authorwinter2025-03-15 20:14:23 +0000
committerwinter2025-03-15 20:14:23 +0000
commit801f0d45d734c69ec96e9bbbc33a3f63b0879c22 (patch)
tree233c1f41b63d47c31a66d5ce46aad76becfeb34e /routes
parente0dfe3d562e1d4cb1429480c725c72974adb1f20 (diff)
delay processing of received simple pushes
Diffstat (limited to 'routes')
-rw-r--r--routes/push.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/push.php b/routes/push.php
index d74d973..344412c 100644
--- a/routes/push.php
+++ b/routes/push.php
@@ -70,6 +70,7 @@ Router::getInstance()->mount('/push/simple', function (array $args) {
sleep(5);
// and only add the job if the client actually waited for the delay time
if (!connection_aborted()) {
- (new ProcessIncomingPush($obj))->submit();
+ // also wait a minute before processing the push
+ (new ProcessIncomingPush($obj))->submitDelayed(60);
}
}); \ No newline at end of file