awesome: close lua in atexit()

So it does it also when restarting.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-27 11:12:54 +02:00
parent 36180b9a41
commit f4ea2f3052

View file

@ -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;