Skip to content

Commit 35068f3

Browse files
committed
Fix Looper.Handle.add()
1 parent e021537 commit 35068f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AndroidLooper/Looper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ internal extension Looper.Handle {
231231
) -> Bool {
232232
let id = callback != nil ? CInt(ALOOPER_POLL_CALLBACK) : id
233233
let result = ALooper_addFd(pointer, fd.rawValue, id, Int32(events.rawValue), callback, data)
234-
return result != 1
234+
return result == 1
235235
}
236236

237237
/**

0 commit comments

Comments
 (0)