mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
36180b9a41
commit
f4ea2f3052
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue