Diff between 422015388dbe35d4543380f0a1a80b83f2e5429c and de663bfc39d13515eb549e70d59329eb83892aa0
Changed Files
| File | Additions | Deletions | Status |
| plugins/policy.c | +5 | -0 | modified |
Full Patch
diff --git a/plugins/policy.c b/plugins/policy.c
index b72467e..9a275da 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -429,6 +429,11 @@ static void reconnect_reset(struct reconnect_data *reconnect)
{
reconnect->start = 0;
reconnect->timeout = 1;
+
+ if (reconnect->timer > 0) {
+ g_source_remove(reconnect->timer);
+ reconnect->timer = 0;
+ }
}
static bool reconnect_match(const char *uuid)