fix an error when zombie processes don't need to be killed

This commit is contained in:
Izaya 2021-11-11 08:15:36 +11:00
parent 6737421e58
commit 111502579f
1 changed files with 3 additions and 1 deletions

4
rc.lua
View File

@ -99,7 +99,9 @@ awful.layout.layouts = {
function restart()
for k,v in pairs(zombies) do
awful.spawn.easy_async(string.format("kill %d",v))
if type(v) == "number" then
awful.spawn.easy_async(string.format("kill %d",v))
end
end
awesome.restart()
end