[network-manager-libreswan/lr/multiple-vpn: 3/9] service: clean the pipe watcher source id



commit 5e86aeaa42338d2fb3acc18c557a72a5b7a2dc31
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Nov 4 14:00:31 2015 +0100

    service: clean the pipe watcher source id

 src/nm-libreswan-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-libreswan-service.c b/src/nm-libreswan-service.c
index 6d6f3da..47611c1 100644
--- a/src/nm-libreswan-service.c
+++ b/src/nm-libreswan-service.c
@@ -1008,6 +1008,7 @@ pr_cb (GIOChannel *source, GIOCondition condition, gpointer user_data)
 
        if (condition & (G_IO_ERR | G_IO_HUP)) {
                DEBUG ("PTY(%s) pipe error!", pipe->detail);
+               pipe->id = 0;
                return G_SOURCE_REMOVE;
        }
        g_assert (condition & G_IO_IN);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]