#10079: HaikuDepot doesn't quit when can't access Internet ---------------------------------------+---------------------------- Reporter: jessicah | Owner: stippi Type: enhancement | Status: reopened Priority: low | Milestone: R1 Component: Applications/HaikuDepot | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------------+---------------------------- Changes (by stippi): * priority: normal => low * type: bug => enhancement Comment: I tested several times with unplugged cable. Each time HaikuDepot stays in the Deskbar for a short while and then it properly quits. This is due to the tear-down sequence: In its destructor, the `Model` stops the package populator thread which communicates with the web-app. That thread is waiting for the HTTP services thread to return, and that one blocks on the network request and eventually times out (after about 30 seconds?). It could be possible to change how these threads communicate, they could use BMessages. Then they wouldn't need to wait for each other during teardown, but only if they are not still sharing data structures somehow. In any case, HaikuDepot does not dead-lock, it's just an irritation that it stays in Deskbar a little longer. To reflect that, I am changing ticket properties. -- Ticket URL: <https://dev.haiku-os.org/ticket/10079#comment:5> Haiku <https://dev.haiku-os.org> Haiku - the operating system.