mirror of
https://codeberg.org/NextPush/nextpush-android.git
synced 2025-01-15 11:26:09 +01:00
Increase wakelock timeout on SSE event
This commit is contained in:
parent
68dc14a95a
commit
fb84ec151a
@ -41,7 +41,7 @@ class SSEListener (val context: Context) : EventSourceListener() {
|
|||||||
|
|
||||||
override fun onEvent(eventSource: EventSource, id: String?, type: String?, data: String) {
|
override fun onEvent(eventSource: EventSource, id: String?, type: String?, data: String) {
|
||||||
Log.d(TAG, "New SSE message event=$type message=$data")
|
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()
|
lastEventDate = Calendar.getInstance()
|
||||||
|
|
||||||
when (type) {
|
when (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user