mirror of https://github.com/grpc/grpc-node.git
grpc-js: Shutdown transport if a state change occurs while connecting
This commit is contained in:
parent
442e3ea24a
commit
2b31f8c148
|
@ -245,6 +245,10 @@ export class Subchannel {
|
|||
);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
/* If we can't transition from CONNECTING to READY here, we will
|
||||
* not be using this transport, so release its resources. */
|
||||
transport.shutdown();
|
||||
}
|
||||
},
|
||||
error => {
|
||||
|
|
Loading…
Reference in New Issue