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



commit 22504d2bcf974f6374c9240c718960bbff2ecfaf
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]