Changeset

45:50a2e4fb0a16

verse: Add verse.quit() to exit the event loop
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 Jan 2010 17:42:57 +0000
parents 44:37396504de5f
children 46:6a329776fb42
files init.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/init.lua	Wed Jan 06 17:42:37 2010 +0000
+++ b/init.lua	Wed Jan 06 17:42:57 2010 +0000
@@ -28,6 +28,10 @@
 	return server.loop();
 end
 
+function verse.quit()
+	return server.setquitting(true);
+end
+
 verse.logger = logger.init;
 
 function verse.set_logger(logger)