am c6a47e98: Merge "Fix a race condition in NativeDaemonConnector"
* commit 'c6a47e98717df6980abc56c93a0dcc83c71f9d96': 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