On Fri, 18 Jan 2019 at 21:19, Richard Duivenvoorde <[email protected]> wrote: > > On 1/18/19 12:13 PM, Alessandro Pasotti wrote: > > > I didn't look at the code but maybe it's because the NAM instance is > > per-thread and WMS/WFS downloaders run within threads. > > Yeah, that is what I'm afraid of... > I just do QgsNetworkAccessManager.instance() which get's it from current > thread. > > And (from what I understand) most providers do not keep an handle to > some NAM :-( > > There is no way to QgsNetworkAccessManager what instances are running in > different threads?
It'd need to be a change made in the core code -- the signals from the background threads would need to be "bubbled up" to the main thread instance of the manager. Nyall > > Richard > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
