From f4ea2f305231bb884a2d95f85328c1079c42978e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 27 Aug 2009 11:12:54 +0200 Subject: [PATCH] awesome: close lua in atexit() So it does it also when restarting. Signed-off-by: Julien Danjou --- awesome.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index dd0dceeb6..471a3e2a8 100644 --- a/awesome.c +++ b/awesome.c @@ -95,6 +95,9 @@ awesome_atexit(void) xcb_flush(globalconf.connection); xcb_disconnect(globalconf.connection); + + /* Close Lua */ + lua_close(globalconf.L); } /** Scan X to find windows to manage. @@ -571,9 +574,6 @@ main(int argc, char **argv) ev_ref(globalconf.loop); ev_io_stop(globalconf.loop, &xio); - /* Close Lua */ - lua_close(globalconf.L); - awesome_atexit(); return EXIT_SUCCESS;