tchannel 3.6.14 → 3.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/channel.js CHANGED
@@ -521,9 +521,6 @@ TChannel.prototype.onServerSocketConnection = function onServerSocketConnection(
521
521
  TChannel.prototype.onServerSocketListening = function onServerSocketListening() {
522
522
  var self = this;
523
523
 
524
- var address = self.serverSocket.address();
525
- var hostPort = self.host + ':' + address.port;
526
-
527
524
  if (self.destroyed) {
528
525
  self.logger.error('got serverSocket listen whilst destroyed', self.extendLogInfo({
529
526
  requestedPort: self.requestedPort
@@ -531,7 +528,8 @@ TChannel.prototype.onServerSocketListening = function onServerSocketListening()
531
528
  return;
532
529
  }
533
530
 
534
- self.hostPort = hostPort;
531
+ var address = self.serverSocket.address();
532
+ self.hostPort = self.host + ':' + address.port;
535
533
  self.listening = true;
536
534
 
537
535
  if (self.subChannels) {
@@ -454,7 +454,9 @@ function advertiseAgain(delay) {
454
454
 
455
455
  self._advertisementTimer = timers.setTimeout(
456
456
  function advertiseTimeout() {
457
- self.advertise();
457
+ if (!self._destroyed) {
458
+ self.advertise();
459
+ }
458
460
  },
459
461
  delay
460
462
  );
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tchannel",
3
3
  "description": "network multiplexing and framing protocol for RPC or parser drag racing",
4
4
  "author": "mranney@uber.com",
5
- "version": "3.6.14",
5
+ "version": "3.6.15",
6
6
  "scripts": {
7
7
  "lint": "eslint $(git ls-files | grep '.js$')",
8
8
  "travis": "npm run test",