Skip to content
Commit f9fbdd2a authored by yangbingqian's avatar yangbingqian Committed by Philip P. Moltmann
Browse files

remove the lock-use for prunePrintService in case blocking main thread



As in the change: I4f4cdaba65132dc2ef054877cbb097b499a723f6
the lock object is removed when calling RemotePrintSpooler
and so as it in the method prunePrintService(). But in the
constructor of UserState, the mLock is still held when calling
prunePrintService(), it may also block the main thread

It is better to take it out of the synchronized block

Test: null
Fixes: 37481484

Change-Id: I21fe5380d5c6302f70e04eee7dac0050886ed4f0
Merged-In: I709b491d611dbcbf21a5fd493b879ed290dd0247
Signed-off-by: default avataryangbingqian <yangbingqian@xiaomi.com>
parent ba003a97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment