projects
/
platform
/
core
/
api
/
wifi-aware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
593e832
)
Reset g_timeout_id after removeing i t
author
Cheoleun Moon
<chleun.moon@samsung.com>
Wed, 8 Apr 2020 02:17:40 +0000
(11:17 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Wed, 8 Apr 2020 02:17:40 +0000
(11:17 +0900)
test/wifi-aware-subscribe-test.c
patch
|
blob
|
history
diff --git
a/test/wifi-aware-subscribe-test.c
b/test/wifi-aware-subscribe-test.c
index
b58a73b
..
c5f6b7d
100644
(file)
--- a/
test/wifi-aware-subscribe-test.c
+++ b/
test/wifi-aware-subscribe-test.c
@@
-441,8
+441,10
@@
static void __service_discovered_cb(wifi_aware_session_h session,
int ret = 0;
PRINT_SUCCESS("[Event][Serivce Discovered]");
- if (g_timeout_id > 0)
+ if (g_timeout_id > 0)
{
g_source_remove(g_timeout_id);
+ g_timeout_id = 0;
+ }
ret = wifi_aware_peer_get_mac(peer, &mac);
if (ret != WIFI_AWARE_ERROR_NONE) {