Parent: f96f3b34db40228feb2efb9cc81df92853d0111e
Author: Andrew Sayers <kernel.org@pileofstuff.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-04-29 20:53:37
Tree: 5e79aad44add0d9b3ea5bf4cd08cf66cefde8d24
pbap: Support calling pbap_init() after pbap_exit() pbap_exit() didn't previously unregister itself thoroughly. That was fine if it was only called when the service was about to exit, because everything was implicitly unregistered when the process ended. But we need to be more scrupulous if this can be called throughout the program's lifecycle. Send the UnregisterProfile message directly from pbap_exit(), then call unregister_profile(). The UnregisterProfile message can't be sent directly from unregister_profile(), because that also needs to be called when register_profile() fails halfway through.
Diffstat
| M | obexd/client/pbap.c | | | 16 | ++++++++++++++- - |
1 files changed, 14 insertions(+), 2 deletions(-)