rust-mobile / android-activity

Glue for building Rust applications on Android with NativeActivity or GameActivity
238 stars 46 forks source link

Fix the error handling for the stdin/err IO thread and exit loop on `io::Error` #132

Closed rib closed 9 months ago

rib commented 11 months ago

We should probably drive-by fix the error handling, because this will loop indefinitely as long as read_line() returns an error. For EOF it returns Ok(0) at least :relieved:

_Originally posted by @MarijnS95 in https://github.com/rust-mobile/android-activity/pull/116#discussion_r1295226898_