feat(spawn, lib: awful: spawn: with_line_callback): make callbacks optional
This commit is contained in:
parent
9fec4f71bc
commit
7546c236db
|
@ -123,8 +123,10 @@ function spawn.with_line_callback(cmd, callbacks)
|
|||
done_before = true
|
||||
return
|
||||
end
|
||||
if done_callback then
|
||||
done_callback()
|
||||
end
|
||||
end
|
||||
if have_stdout then
|
||||
spawn.read_lines(Gio.UnixInputStream.new(stdout, true),
|
||||
stdout_callback, step_done, true)
|
||||
|
|
Loading…
Reference in New Issue