diff options
Diffstat (limited to 'gatchat/ppp_net.c')
-rw-r--r-- | gatchat/ppp_net.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gatchat/ppp_net.c b/gatchat/ppp_net.c index 1a6cdf7d..9abf5905 100644 --- a/gatchat/ppp_net.c +++ b/gatchat/ppp_net.c @@ -196,3 +196,12 @@ void ppp_net_free(struct ppp_net *net) g_free(net->if_name); g_free(net); } + +void ppp_net_suspend_interface(struct ppp_net *net) +{ + if (net == NULL || net->channel == NULL) + return; + + if (net->watch) + g_source_remove(net->watch); +} |