diff --git a/app/src/main/java/org/hydev/wearsync/MyService.kt b/app/src/main/java/org/hydev/wearsync/MyService.kt index 46d2432..c14c385 100644 --- a/app/src/main/java/org/hydev/wearsync/MyService.kt +++ b/app/src/main/java/org/hydev/wearsync/MyService.kt @@ -24,11 +24,12 @@ import java.util.concurrent.atomic.AtomicReference class MyService : Service() { - private lateinit var influx: Influx - private val bm by lazy { getSysServ() } + lateinit var influx: Influx - private val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO) - private val count = AtomicLong() + val bm by lazy { getSysServ() } + + val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO) + val count = AtomicLong() override fun onBind(intent: Intent?) = null override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int