loginManager: Don't pass too many args to steal_fds

This commit is contained in:
Jasper St. Pierre 2014-04-15 17:52:50 -04:00
parent 9830b3b8f7
commit 70d75ca311

View File

@ -191,7 +191,7 @@ const LoginManagerSystemd = new Lang.Class({
let fd = -1;
try {
let [outVariant, fdList] = proxy.call_with_unix_fd_list_finish(result);
fd = fdList.steal_fds(outVariant.deep_unpack())[0];
fd = fdList.steal_fds()[0];
callback(new Gio.UnixInputStream({ fd: fd }));
} catch(e) {
logError(e, "Error getting systemd inhibitor");