From fb84ec151a5f2459ea3adbdb59cb269e93a51289 Mon Sep 17 00:00:00 2001 From: sim Date: Tue, 22 Feb 2022 22:43:43 +0100 Subject: [PATCH] Increase wakelock timeout on SSE event --- .../unifiedpush/distributor/nextpush/services/SSEListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/services/SSEListener.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/services/SSEListener.kt index c4b9f54..737e0b7 100644 --- a/app/src/main/java/org/unifiedpush/distributor/nextpush/services/SSEListener.kt +++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/services/SSEListener.kt @@ -41,7 +41,7 @@ class SSEListener (val context: Context) : EventSourceListener() { override fun onEvent(eventSource: EventSource, id: String?, type: String?, data: String) { Log.d(TAG, "New SSE message event=$type message=$data") - StartService.wakeLock?.acquire(10000L /*10 secs*/) + StartService.wakeLock?.acquire(30000L /*30 secs*/) lastEventDate = Calendar.getInstance() when (type) {