Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix
  • Loading branch information
indutny committed Feb 19, 2015
commit 7a8d34dfc355f87c52d97a3e5b4ec7ab6c4702a7
6 changes: 3 additions & 3 deletions lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ function TLSSocket(socket, options) {
readable: false,
writable: false
});
if (socket)
if (socket) {
this._parent = socket;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not combine the 2 following lines into one if statement like:

if (socket)
  this._parent = socket,
  this._connecting = socket._connecting;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


// To prevent assertion in afterConnect()
if (socket)
// To prevent assertion in afterConnect()
this._connecting = socket._connecting;
}

this._tlsOptions = options;
this._secureEstablished = false;
Expand Down