Skip to content

Commit

Permalink
Don't lose scheduler when we pass the args
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jan 14, 2018
1 parent f5b4d89 commit 7c45151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Socket/Async.pm
Expand Up @@ -311,7 +311,7 @@ my class IO::Socket::Async {
}

method print-to(IO::Socket::Async:D: Str() $host, Int() $port, Str() $str, :$scheduler = $*SCHEDULER) {
self.write-to($host, $port, $!encoder.encode-chars($str))
self.write-to($host, $port, $!encoder.encode-chars($str), :$scheduler)
}

method write-to(IO::Socket::Async:D: Str() $host, Int() $port, Blob $b, :$scheduler = $*SCHEDULER) {
Expand Down

0 comments on commit 7c45151

Please sign in to comment.