* commit 'b901c9abff6b3885e1efce2e643b1f8e5ef3fc79': Fix a race condition in NativeDaemonConnector
This commit is contained in:
@ -97,11 +97,12 @@ final class NativeDaemonConnector implements Runnable {
|
|||||||
LocalSocketAddress.Namespace.RESERVED);
|
LocalSocketAddress.Namespace.RESERVED);
|
||||||
|
|
||||||
socket.connect(address);
|
socket.connect(address);
|
||||||
mCallbacks.onDaemonConnected();
|
|
||||||
|
|
||||||
InputStream inputStream = socket.getInputStream();
|
InputStream inputStream = socket.getInputStream();
|
||||||
mOutputStream = socket.getOutputStream();
|
mOutputStream = socket.getOutputStream();
|
||||||
|
|
||||||
|
mCallbacks.onDaemonConnected();
|
||||||
|
|
||||||
byte[] buffer = new byte[BUFFER_SIZE];
|
byte[] buffer = new byte[BUFFER_SIZE];
|
||||||
int start = 0;
|
int start = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user