unit/gobex: remove timer only when it's not removed yet
authorArchie Pusaka <apusaka@chromium.org>
Thu, 6 May 2021 03:42:54 +0000 (11:42 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commitbc8486cd994b17dcbb7577542682f4551bdd715f
tree79aa985c2fac0b9031bb260bd71b00e7a7318d75
parent328ebdf7fb87e10c06ae867110ff0bceb831faa9
unit/gobex: remove timer only when it's not removed yet

There are instances where timer is removed because timeout has
occurred, yet we still remove it again by the end of the test. This
causes double removal and prints ugly messages which obscures the
real culprit.

Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
unit/test-gobex-transfer.c
unit/test-gobex.c
unit/util.c
unit/util.h