diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-09 14:05:23 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-09 14:05:23 +0000 |
commit | 79d5d85c700abad9aff4dcd002b9b74720ad0ce9 (patch) | |
tree | 5574f7f5fa5d212d4bdc0ccbd77a1b719aabcf1f | |
parent | modules can now be removed by type (diff) |
fixed client cleanup at write error
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@20 ac14a137-c7f1-4531-abe0-07747231d213
-rw-r--r-- | src/main_loop.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index 0abb03f..7c745f2 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -99,8 +99,8 @@ function main_loop(opt) end for _, output in ipairs(writeable) do ret = output:write() - if(ret ~= defines.OK) then - output.client_instance:cleanup() + if(ret == defines.KILL_CLIENT) then + client_list:unregister(input.client_instance) end end end |