Fix a bug that exposes non-thread-safe access for reading dir.
This commit is contained in:
parent
a35d17f4e7
commit
b9d90368bc
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class SambaFacadeClient extends BaseClient implements SmbFacade {
|
|||
try (final MessageValues<SmbDir> messageValues = MessageValues.obtain()) {
|
||||
final Message msg = obtainMessage(READ_DIR, messageValues, uri);
|
||||
enqueue(msg);
|
||||
return messageValues.getObj();
|
||||
return new SambaDirClient(mHandler.getLooper(), messageValues.getObj());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue