Skip to content

Commit 512ab1f

Browse files
Kerooshatargos
authored andcommitted
inspector: removing checking of non existent field in lib/inspector.js
Seems like sessionAttached doesn't exist and no more assigned anywhere PR-URL: #27919 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent b5b234d commit 512ab1f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/inspector.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ class Session extends EventEmitter {
3737
connect() {
3838
if (this[connectionSymbol])
3939
throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
40-
const connection =
40+
this[connectionSymbol] =
4141
new Connection((message) => this[onMessageSymbol](message));
42-
if (connection.sessionAttached) {
43-
throw new ERR_INSPECTOR_ALREADY_CONNECTED('Another inspector session');
44-
}
45-
this[connectionSymbol] = connection;
4642
}
4743

4844
[onMessageSymbol](message) {

0 commit comments

Comments
 (0)