ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/login.ext
(Generate patch)

Comparing deliantra/server/ext/login.ext (file contents):
Revision 1.92 by root, Mon Sep 22 01:33:09 2008 UTC vs.
Revision 1.94 by root, Sat Dec 13 21:46:12 2008 UTC

13} 13}
14 14
15sub query { 15sub query {
16 my ($ns, $flags, $text) = @_; 16 my ($ns, $flags, $text) = @_;
17 17
18 my $current = $Coro::current; 18 $ns->query ($flags, $text, Coro::rouse_cb);
19 $ns->query ($flags, $text, sub { $current->ready; $current = $_[0] }); 19 Coro::rouse_wait
20 Coro::schedule while ref $current;
21
22 $current
23} 20}
24 21
25sub can_cleanup { 22sub can_cleanup {
26 my ($pl, $mtime) = @_; 23 my ($pl, $mtime) = @_;
27 24
433 Coro::Timer::sleep 0.2; 430 Coro::Timer::sleep 0.2;
434 } 431 }
435 432
436 $ob->reply (undef, "Welcome to Deliantra!"); 433 $ob->reply (undef, "Welcome to Deliantra!");
437 434
435 # XXX: Workaround for delayed client ext protocol handshake
436 $pl->esrv_new_player;
437
438 delete $pl->{deny_save}; 438 delete $pl->{deny_save};
439 439
440 last; 440 last;
441 } 441 }
442 }); 442 });

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines