mesh: Only deregister io for the last network detached
authorMichael N. Moran <mike@mnmoran.org>
Fri, 6 Nov 2020 22:48:11 +0000 (17:48 -0500)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit6fc0911de261fe907ca02f83776964a6c9a88dd7
tree79a5ce5cfb4b3d66f01e205e33622fb811913b6f
parent80169a66a9d74ea1f129b9985a6128f1d01594f9
mesh: Only deregister io for the last network detached

When multiple mesh networks are active and one is detached
using Leave(), the I/O to all networks is halted.

This patch prevents that by only deregistering the I/O
if all networks have been detached.

Change-Id: Iae00af608959dda15440801f2141602e1844e4aa
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/net.c