bug fix
This commit is contained in:
parent
ee278a6ce3
commit
8556f5edbc
|
@ -131,8 +131,12 @@ export default class WebSocketRPC {
|
|||
|
||||
private onResponseHandler(response: Response<ID_TYPE>): void {
|
||||
const requestID = response.ID;
|
||||
const error = response.Error;
|
||||
const result = JSON.parse(response.Result);
|
||||
let error = response.Error;
|
||||
let result;
|
||||
|
||||
if (undefined !== response.Result) {
|
||||
result = JSON.parse(response.Result);
|
||||
}
|
||||
|
||||
if (this.requestQueue.has(requestID)) {
|
||||
let promise = this.requestQueue.get(requestID);
|
||||
|
|
Loading…
Reference in New Issue
Block a user