mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Fix double closing on memory file (#1579)
Co-authored-by: fanchao <git@fanchao.dev>
This commit is contained in:
parent
a495ec232a
commit
dec02cef5a
@ -22,7 +22,7 @@ public class MemoryFileUtil {
|
|||||||
|
|
||||||
int fd = field.getInt(fileDescriptor);
|
int fd = field.getInt(fileDescriptor);
|
||||||
|
|
||||||
return ParcelFileDescriptor.adoptFd(fd);
|
return ParcelFileDescriptor.fromFd(fd);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
throw new IOException(e);
|
throw new IOException(e);
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user