libnm/libnm-glib: don't quit in the middle of asking for secrets (bgo #752237)
authorDan Williams <dcbw@redhat.com>
Tue, 30 Jun 2015 14:48:53 +0000 (09:48 -0500)
committerDan Williams <dcbw@redhat.com>
Thu, 16 Jul 2015 21:50:10 +0000 (16:50 -0500)
commit3272ff6fc557262dec08f3f32ed91ec5471eecd5
tree937a0e320dd061bb3d7cd6f372cf323b729594de
parentaa7ab4b0565d83d87fc6b71fe5b399ad186466ce
libnm/libnm-glib: don't quit in the middle of asking for secrets (bgo #752237)

If the VPN plugin terminated and the user started it again, then the
quit timer will still be running and it sometimes happens that the
VPN plugin will quit while the UI is asking the user for secrets.
That's not very nice, so don't do that.

Reproducer: while connect to the VPN, suspend your laptop.  Then
resume it, and immediately re-start the VPN connection.  Watch the
secrets dialog disappear within a very short time.

https://bugzilla.gnome.org/show_bug.cgi?id=752237
libnm-glib/nm-vpn-plugin.c
libnm/nm-vpn-plugin-old.c