Skip to content

Commit

Permalink
Merge pull request #1087 from rakudo/refactor-socket-encoding
Browse files Browse the repository at this point in the history
Merge sock branch
  • Loading branch information
zoffixznet committed May 23, 2017
2 parents e13a3a6 + 919fc36 commit a2e28a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/IO/Socket/INET.pm
Expand Up @@ -126,6 +126,7 @@ my class IO::Socket::INET does IO::Socket {
}

if $.listening {
$!localport = nqp::getport($PIO) if !$!localport;
}
elsif $.type == PIO::SOCK_STREAM {
nqp::connect($PIO, nqp::unbox_s($.host), nqp::unbox_i($.port));
Expand Down

0 comments on commit a2e28a9

Please sign in to comment.