This commit is contained in:
crusader 2017-08-14 16:57:45 +09:00
parent ee278a6ce3
commit 8556f5edbc

View File

@ -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);