mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 08:50:07 +01:00
nm-vpn-service-plugin: increase the quit timer
We now (since3272ff6libnm/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. (cherry picked from commitb1512221bc)
This commit is contained in:
parent
e0ca2bdb63
commit
f7617511bb
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ static gboolean impl_vpn_plugin_set_failure (NMVPNPlugin *plugin,
|
|||
|
||||
#include "nm-vpn-plugin-glue.h"
|
||||
|
||||
#define NM_VPN_PLUGIN_QUIT_TIMER 20
|
||||
#define NM_VPN_PLUGIN_QUIT_TIMER 180
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE (NMVPNPlugin, nm_vpn_plugin, G_TYPE_OBJECT)
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
#include "nmdbus-vpn-plugin.h"
|
||||
|
||||
#define NM_VPN_PLUGIN_OLD_QUIT_TIMER 20
|
||||
#define NM_VPN_PLUGIN_OLD_QUIT_TIMER 180
|
||||
|
||||
static void nm_vpn_plugin_old_initable_iface_init (GInitableIface *iface);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue