mirror of
https://github.com/topjohnwu/libsu.git
synced 2024-11-23 03:59:43 +00:00
Run connect on main thread
This commit is contained in:
parent
59eda41b13
commit
7a36507db4
@ -97,6 +97,10 @@ public class RootServiceServer extends IRootServiceManager.Stub {
|
||||
|
||||
@Override
|
||||
public void connect(IBinder binder, boolean debug) {
|
||||
UiThreadHandler.run(() -> connectInternal(binder, debug));
|
||||
}
|
||||
|
||||
private void connectInternal(IBinder binder, boolean debug) {
|
||||
ClientProcess c = clients.get(getCallingUid());
|
||||
if (c != null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user