|
|
@@ -792,7 +792,11 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
// TODO hasJoystickMoveRequest中断
|
|
|
this.logger.log('this.hasJoystickMoveRequest', this.hasJoystickMoveRequest);
|
|
|
if (!this.hasJoystickMoveRequest) {
|
|
|
- this.handlejoystick(request);
|
|
|
+ if (this.channel.bufferedAmount() <= 16000) {
|
|
|
+ this.handlejoystick(request);
|
|
|
+ } else {
|
|
|
+ console.error('当前存在网络Jiiter--放弃', JSON.stringify(request));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|