Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improved close event timing
  • Loading branch information
kraih committed May 26, 2012
1 parent e693509 commit 9c72c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop.pm
Expand Up @@ -64,8 +64,8 @@ sub client {
);
$client->on(
error => sub {
delete $self->{connections}{$id};
$self->$cb(pop, undef);
delete $self->{connections}{$id};
}
);

Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -7,8 +7,8 @@ use Mojo::UserAgent;
use Mojo::Util qw(decode encode);
use Test::More ();

has ua => sub { Mojo::UserAgent->new->ioloop(Mojo::IOLoop->singleton) };
has 'tx';
has ua => sub { Mojo::UserAgent->new->ioloop(Mojo::IOLoop->singleton) };

# Silent or loud tests
$ENV{MOJO_LOG_LEVEL} ||= $ENV{HARNESS_IS_VERBOSE} ? 'debug' : 'fatal';
Expand Down

0 comments on commit 9c72c82

Please sign in to comment.