Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 1cb8d64

Browse files
committed
bugfix
1 parent 08bc6fe commit 1cb8d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/core/Socket/SocketConnections.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class SocketConnections extends Listener {
134134
socketId = this.getSocketId()
135135
}
136136

137-
this.transactions[transactionId] = new Transaction({
137+
const t = this.transactions[transactionId] = new Transaction({
138138
transactionId,
139139
command,
140140
json: JSON.stringify({
@@ -170,6 +170,6 @@ export class SocketConnections extends Listener {
170170
delete this.transactions[transactionId]
171171
}
172172

173-
return this.transactions[transactionId].promise
173+
return t.promise
174174
}
175175
}

0 commit comments

Comments
 (0)