message: Put update code inside Promise
diff: @@ -97,6 +97,7 @@ export class LibevShadowsocksServer implements ShadowsocksServer {
  }
  update(newKeys: AccessKey[]): Promise<void> {
  + return new Promise((resolve, reject) => {
  const oldKeys = this.keys;
  this.keys = new Map<string, AccessKey>();
  for (const key of newKeys) {
  @@ -113,7 +114,8 @@ export class LibevShadowsocksServer implements ShadowsocksServer {
  this.stopInstance(oldKey.id);
  }
  }
  - return Promise.resolve();
  + resolve();
  + });
  }
  private startInstance(key: AccessKey): child_process.ChildProcess {
  