Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 09-13-2007, 09:17 PM   #1 (permalink)
Forum Novice
 
Join Date: Jul 2003
Posts: 158
Default [2.0 SVN] Server shutdown on logoff

I noticed that there's now a console control event handler in version 2.0, but the way it is causes the server to shutdown upon logout even if it's running as a service. I simply added the following to OnConsoleEvent above if( World.Saving ):
Code:
			if ( type == ConsoleEventType.CTRL_LOGOFF_EVENT )
				return true;
I suppose this could also be changed to:
Code:
			if ( type == ConsoleEventType.CTRL_LOGOFF_EVENT && m_Service )
				return true;
panther is offline   Reply With Quote
Old 09-13-2007, 10:52 PM   #2 (permalink)
Forum Administrator
 
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,528
Default

Looks good, I planned on cleaning that up when I added signal handlers for Mono/Linux.
Mark is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5