Skip to content

Commit 0cee578

Browse files
committed
[Breaking Change] Use the real main queue with Johnno's toolchain
This should be temporary until we get the libdispatch build working again.
1 parent d92a27a commit 0cee578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/JNI/SwiftJNI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public func JNI_OnLoad(jvm: UnsafeMutablePointer<JavaVM>, reserved: UnsafeMutabl
1212
jni = localJNI // set the global for use elsewhere
1313

1414
#if os(Android)
15+
DispatchQueue.drainingMainQueue = true
1516
DispatchQueue.setThreadDetachCallback(JNI_DetachCurrentThread)
1617
#endif
1718

0 commit comments

Comments
 (0)