Skip to content

Commit

Permalink
Merge pull request #1 from nextorigin/fix/node-0.12
Browse files Browse the repository at this point in the history
[fix] node 0.12 socket close event does not always have payload
  • Loading branch information
doublerebel committed Nov 29, 2016
2 parents efbcc51 + 8edfb7d commit 2024409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/godot/net/client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class Client extends stream.Transform

@emit "connect"

cleanup: ({had_error, error}) =>
cleanup: ({had_error, error} = {}) =>
switch @type
when "tcp", "tls", "unix"
@serializer.unpipe @socket
Expand Down

0 comments on commit 2024409

Please sign in to comment.