Commit d6321c2
committed
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.1 parent 243e6b6 commit d6321c2
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| |||
0 commit comments