projects
/
project
/
udebug.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
615bf58
)
lib: cancel reconnect timer on free
author
Felix Fietkau
<
[email protected]
>
Tue, 14 Nov 2023 11:38:16 +0000
(12:38 +0100)
committer
Felix Fietkau
<
[email protected]
>
Tue, 14 Nov 2023 11:38:16 +0000
(12:38 +0100)
Signed-off-by: Felix Fietkau <
[email protected]
>
lib.c
patch
|
blob
|
history
diff --git
a/lib.c
b/lib.c
index 7be36bb7803908fcb0f771c35a80a4ba4f095487..c545816fe3a9ad9f9401a265b538d8635eaa257f 100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-713,7
+713,7
@@
void __udebug_disconnect(struct udebug *ctx, bool reconnect)
close(ctx->fd.fd);
ctx->fd.fd = -1;
ctx->poll_handle = -1;
- if (ctx->reconnect.cb)
+ if (ctx->reconnect.cb
&& reconnect
)
uloop_timeout_set(&ctx->reconnect, 1);
}
@@
-726,6
+726,7
@@
void udebug_free(struct udebug *ctx)
ctx->socket_path = NULL;
__udebug_disconnect(ctx, false);
+ uloop_timeout_cancel(&ctx->reconnect);
while (!list_empty(&ctx->local_rings)) {
buf = list_first_entry(&ctx->local_rings, struct udebug_buf, list);