Skip to content

Commit e54dcd7

Browse files
author
Devin Torres
authored
Merge pull request #7 from liveforeverx/catch_last_message
Catch closed port message
2 parents 624a5bb + 587b5ab commit e54dcd7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/execjs.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ defmodule Execjs do
5353
loop(port, acc <> data)
5454
{ ^port, :eof } ->
5555
send port, { self, :close }
56+
receive do: ({ ^port, :closed } -> :ok)
5657
acc
5758
end
5859
end

0 commit comments

Comments
 (0)