thunderbolt: fix enroll-failed signal args order

The devices emitted (device, error) while the connected handler
was expecting (error, device). The former is more consistent
with the rest of the code (so change it to device, error).
This commit is contained in:
Christian Kellner 2018-04-19 14:13:20 +02:00
parent c4e0f6df08
commit 0963ccddba

View File

@ -228,7 +228,7 @@ var AuthRobot = new Lang.Class({
_onEnrollDone(device, error) { _onEnrollDone(device, error) {
if (error) if (error)
this.emit('enroll-failed', error, device); this.emit('enroll-failed', device, error);
/* TODO: scan the list of devices to be authorized for children /* TODO: scan the list of devices to be authorized for children
* of this device and remove them (and their children and * of this device and remove them (and their children and