Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't run flask in threaded mode in webview test app
When flask is run in threaded mode, it creates a new thread to handle each response. In that case, Java classes found with jnius will use the system class loader instead of the app class loader since the new thread has no stack frame back to the app. Normally you'd resolve the classes first, but the test app is explicitly trying to delay loading the classes until needed. That won't work from new native threads.
- Loading branch information