mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
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…
x
Reference in New Issue
Block a user