|
@@ -232,13 +232,9 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- exit(request: ExitRequest) {
|
|
|
+ exit() {
|
|
|
this.frameCnt.next(-1);
|
|
|
- this.stopStream();
|
|
|
- // const exitReply = this.sceneGrpcService.exit(request);
|
|
|
- // exitReply.subscribe((reply) => {
|
|
|
- // console.log('exitReply', reply);
|
|
|
- // });
|
|
|
+ this.rotateService.deleteUser(this.user_id);
|
|
|
}
|
|
|
|
|
|
async rotate(request: RotateRequest) {
|
|
@@ -739,12 +735,12 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
this.stopStream();
|
|
|
this.startSteaming.next(false);
|
|
|
this.streamService.closeChannel();
|
|
|
- const exitRequest: ExitRequest = {
|
|
|
- action_type: 1002,
|
|
|
- user_id: this.user_id,
|
|
|
- trace_id: '',
|
|
|
- };
|
|
|
- this.exit(exitRequest);
|
|
|
+ // const exitRequest: ExitRequest = {
|
|
|
+ // action_type: 1002,
|
|
|
+ // user_id: this.user_id,
|
|
|
+ // trace_id: '',
|
|
|
+ // };
|
|
|
+ this.exit();
|
|
|
}
|
|
|
|
|
|
handleMessage(message: string | Buffer) {
|