networkAgent: Only unregister if we've registered
It's possible to turn auto_register back on, but not immediately be registered. Don't cause a (harmless) critical in this case. https://bugzilla.gnome.org/show_bug.cgi?id=689884
This commit is contained in:
parent
fc696bc054
commit
15cac0157c
@ -613,7 +613,8 @@ const NetworkAgent = new Lang.Class({
|
||||
this._vpnRequests = { };
|
||||
|
||||
this._native.auto_register = false;
|
||||
this._native.unregister();
|
||||
if (this._native.registered)
|
||||
this._native.unregister();
|
||||
},
|
||||
|
||||
_newRequest: function(agent, requestId, connection, settingName, hints, flags) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user