Skip to content

Commit

Permalink
dont hide anything within__disconnect()
Browse files Browse the repository at this point in the history
there is no code-path that should lead to warning like:
* uninitialized value used in subroutine
* shutdown on unopened file descriptor
or die in __disconnect().
so just leave it be
  • Loading branch information
jackdoe committed Dec 13, 2013
1 parent e8e5935 commit 2345cfd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Hijk.pm
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ sub request {
}

sub __disconnect {
eval {
shutdown(delete $SocketCache->{$_[0]}, 2);
};
shutdown(delete $SocketCache->{$_[0]}, 2);
}

1;
Expand Down

0 comments on commit 2345cfd

Please sign in to comment.