Thread
: [SailfishOS]
Pure Maps
View Single Post
otsaloma
2018-09-06 , 20:54
Posts: 141 | Thanked: 1,530 times | Joined on May 2011 @ Finland
#
153
Originally Posted by
rinigus
@otsaloma, its also not clear where to invoke the hammer. At the end of quit?
Yes, I figured if all the function calls under Application.quit pass, but maybe a subprocess or thread is misbehaving, a "raise SystemExit(0)" at the end might force a quit – and if sailfish-qml/qmlscene/qml is waiting for Python, then the whole app process tree might quit, maybe.
For what it's worth, I did test http.pool.terminate with online providers in different connection states and it seemed to work fine, but it's possible I missed something or OSM Scout behaves differently. Also, if there's a problem in the http module, one solution would be to just swap it for
requests
(plus its dependencies). I was reluctant to bundle stuff, but I also think I underestimated the difficulty of writing a custom HTTP connection pool, there's been various corner case issues.
Quote & Reply
|
The Following 7 Users Say Thank You to otsaloma For This Useful Post:
Amboss
,
carlosgonz
,
Fellfrosch
,
juiceme
,
peterleinchen
,
pichlo
,
rinigus
otsaloma
View Public Profile
Send a private message to otsaloma
Visit otsaloma's homepage!
Find all posts by otsaloma