nm-vpn-service-plugin: increase the quit timer
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 1 Oct 2015 15:17:52 +0000 (17:17 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Thu, 1 Oct 2015 15:17:52 +0000 (17:17 +0200)
commitb1512221bc29f24b86d464dc5117439c366fd299
tree5353c91f719b1c8f1f908179edb5b96af4ca9fbc
parentd4a7645865c91f08261ca0a5fac72e6bab7576ab
nm-vpn-service-plugin: increase the quit timer

We now (since 3272ff6 libnm/libnm-glib: don't quit in the middle of asking for
secrets) always hook on the quit timer when NM asks the plugin if it needs
secrets. The timer is 20 seconds, which seems too short.

Let's make it three minutes. Don't bother adding another timer or using a
distinct timeout: it does no harm for the plugin to remain unused for three
minutes on a bus.

Another option would be to completely unhook it; however the plugin wouldn't
learn if the user cancelled the NM's secrets request and would remain unused
on the bus forever.
libnm-glib/nm-vpn-plugin.c
libnm/nm-vpn-plugin-old.c
libnm/nm-vpn-service-plugin.c