summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anylike.org>2010-11-03 17:47:04 +0000
committerChristian Pointner <equinox@anylike.org>2010-11-03 17:47:04 +0000
commitfb36b0ca566e7090ef3c7ec28ee63d9aaaf58623 (patch)
tree2a78bca470f382a248ecd2b09df5c3edf4193b9e
parentfixed typo (diff)
fixed debug shell cleanup bug
-rw-r--r--src/main_loop.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua
index 40f2e9a..0283587 100644
--- a/src/main_loop.lua
+++ b/src/main_loop.lua
@@ -63,7 +63,9 @@ function main_loop(opt)
if(return_value == 2) then return_value = 0 end
- debug_shell.close();
+ if(opt.debug) then
+ debug_shell.close();
+ end
signal.stop()
return return_value
end