Skip to content

Commit

Permalink
die on failing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
sergot committed Jul 25, 2014
1 parent 4ed0585 commit a1724c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/IO/Socket/SSL.pm6
Expand Up @@ -73,6 +73,9 @@ method !initialize {
$!ssl.set-connect-state;
$!ssl.connect;
}
else {
die "Failed to connect";
}
}
elsif $!localhost && $!localport {
# server stuff TODO
Expand Down

0 comments on commit a1724c0

Please sign in to comment.