Parent: b60b3328aa27ced43a6fe68d770d2b943a073a2d
Author: Hunt, Preston <preston.hunt@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2019-02-26 11:05:50
Tree: 49f2cef3e586bec019725abf3e3c18dccbdab643
test/example-advertisement: add shutdown code The previous sample code did not release all resources when shutting down. This is fine when it's a standalone program since Python will free all resources automatically when the process terminates. However, in a long-running process, this will eventually cause problems. This changeset shows how to properly release all resources, if an optional command line "--timeout" argument is used. The default is no timeout to maintain behavior of the previous implementation (advertisements will run forever).
Diffstat
| M | test/example-advertisement | | | 42 | ++++++++++++++++++++++++++++++++- - - - - - - - - - |
1 files changed, 32 insertions(+), 10 deletions(-)