Stop OperationManagerService when there is no download to do.
I could close OperationManagerService when all his jobs are done. But I need to check if no ObserverService is running at this step.
When a scanner has detected all modification and all of them has been synced the OperationManagerService still run. It use memory and process for nothing.
When the full queue of OMS is empty, and if no ObserverService is running, then stop it.
There is a timeout in connexion if there is no job to do ? Timeout is set a 60000 millisecond as shown in logcat:
D/AdvancedSslSocketFactory: Creating SSL Socket with remote ecloud.global:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@4c16e5b 2019-08-12 14:59:00.782 3125-6488 D/AdvancedSslSocketFactory: ... with connection timeout 60000 and socket timeout 60000 2019-08-12 14:59:00.787 3125-6488 I/ServerNameIndicator: SSLSocket implementation: com.android.org.conscrypt.OpenSSLSocketImpl 2019-08-12 14:59:00.787 3125-6488 I/ServerNameIndicator: SNI done, hostname: ecloud.global
what happen when timeout happened and a scanner job resend job to do ?
But I think the ssl socket is recreated each time client need it and it doesn't exist...