This commit is contained in:
crusader 2017-08-09 12:42:53 +09:00
parent d5595bd61a
commit 5bad40306d

View File

@ -108,14 +108,14 @@ class OFApplication {
private initRpcClient(): Promise<WebSocketRPC> { private initRpcClient(): Promise<WebSocketRPC> {
const rpcClient = new Promise<WebSocketRPC>((resolve, reject) => { const rpcClient = new Promise<WebSocketRPC>((resolve, reject) => {
let client = new WebSocketRPC(this.config.rpc.url); let client = new WebSocketRPC(this.config.rpc.url);
client.initialize() // client.initialize()
.then(() => { // .then(() => {
resolve(client); // resolve(client);
}) // })
.catch((err: any) => { // .catch((err: any) => {
reject(err); // reject(err);
}); // });
// resolve(client); resolve(client);
}); });
return rpcClient; return rpcClient;