ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.18 by root, Tue Jul 11 14:24:15 2006 UTC vs.
Revision 1.20 by root, Sun Jul 16 17:29:02 2006 UTC

1package cf; 1package cf;
2 2
3use Symbol; 3use Symbol;
4use List::Util; 4use List::Util;
5use Storable; 5use Storable;
6
6use Event; 7use Event;
8$Event::Eval = 1; # no idea why this is required, but it is
7 9
8use strict; 10use strict;
9 11
10our %COMMAND; 12our %COMMAND;
11our @EVENT; 13our @EVENT;
214 if ($who->flag (FLAG_WIZ)) { 216 if ($who->flag (FLAG_WIZ)) {
215 $who->message ("reloading..."); 217 $who->message ("reloading...");
216 218
217 warn "reloading...\n"; 219 warn "reloading...\n";
218 eval { 220 eval {
221 $_->cancel for Event::all_watchers;
222
219 unload_extension $_ for @exts; 223 unload_extension $_ for @exts;
220 delete $INC{"cf.pm"}; 224 delete $INC{"cf.pm"};
221 225
222 # don't, removes xs symbols, too 226 # don't, removes xs symbols, too
223 #Symbol::delete_package $pkg; 227 #Symbol::delete_package $pkg;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines