P2P technology exists if only wifi technology exists and does not own any devices. Thus it's unnecessary to refcount it more than once.
Reported by Eduardo Abinader <[email protected]> --- src/technology.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/technology.c b/src/technology.c index 5a12202..a917a6c 100644 --- a/src/technology.c +++ b/src/technology.c @@ -1157,7 +1157,8 @@ static struct connman_technology *technology_get(enum connman_service_type type) technology = technology_find(type); if (technology) { - __sync_fetch_and_add(&technology->refcount, 1); + if (type != CONNMAN_SERVICE_TYPE_P2P) + __sync_fetch_and_add(&technology->refcount, 1); return technology; } -- 1.8.3.2 _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
