|
|
@@ -102,20 +102,16 @@ export default new (class LifeCycleCtr {
|
|
|
|
|
|
/** 主动关闭行情服务 */
|
|
|
closeQuote() {
|
|
|
- if (this.Socket['quote'].connState !== 'Unconnected') {
|
|
|
- this.Socket['quote'].close();
|
|
|
- }
|
|
|
+ this.Socket['quote'].close();
|
|
|
}
|
|
|
|
|
|
/** 主动关闭长链接 */
|
|
|
closeServer(): void {
|
|
|
- if (this.Socket['trade'].connState !== 'Unconnected') {
|
|
|
- this.Socket['trade'].close();
|
|
|
- this.dataCenter.reset();
|
|
|
- // sessionStorage.clear();
|
|
|
- // localStorageUtil.removeItem('loginData');
|
|
|
- // timerUtil.clearAll();
|
|
|
- }
|
|
|
+ this.Socket['trade'].close();
|
|
|
+ this.dataCenter.reset();
|
|
|
+ // sessionStorage.clear();
|
|
|
+ // localStorageUtil.removeItem('loginData');
|
|
|
+ // timerUtil.clearAll();
|
|
|
}
|
|
|
|
|
|
/** 处理行情相关信息 */
|