Skip to content

Commit

Permalink
Fix SocketFactory states coderef acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Dec 29, 1999
1 parent 2328449 commit 625ada8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/POE/Wheel/SocketFactory.pm
Expand Up @@ -240,9 +240,6 @@ sub new {
unless (exists $params{'SocketType'});

my $self = bless { }, $type;
$self->event( SuccessState => $params{'SuccessState'},
FailureState => $params{'FailureState'},
);
my $socket_handle = gensym;

my ($socket_domain, $socket_type, $success_event, $failure_event)
Expand Down Expand Up @@ -483,6 +480,10 @@ sub new {
croak 'unsupported SocketDomain';
}

$self->event( SuccessState => $params{'SuccessState'},
FailureState => $params{'FailureState'},
);

$self;
}

Expand Down

0 comments on commit 625ada8

Please sign in to comment.