Skip to content

Commit 28ccf20

Browse files
committed
Fixed a parsing logic error
1 parent f448ec5 commit 28ccf20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbgp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class DbgpConnection extends EventEmitter {
9292
// append the last piece of the response
9393
const lastResponsePiece = data.slice(0, this._dataLength - this._chunksDataLength)
9494
this._chunks.push(lastResponsePiece)
95-
this._chunksDataLength += data.length
95+
this._chunksDataLength += lastResponsePiece.length
9696
const response = Buffer.concat(this._chunks, this._chunksDataLength)
9797
// call response handler
9898
const xml = iconv.decode(response, ENCODING)

0 commit comments

Comments
 (0)