浏览代码

Ethan bug

master
Roderic Day 4 年前
父节点
当前提交
dd9d5a4d6b
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      apps/rpc.js

+ 5
- 5
apps/rpc.js 查看文件

@@ -22,11 +22,11 @@ function rpcCleanUp(kind, target) {
for([uid, info] of Object.entries(allRPCs)) {
const sameKind = info.kind === kind
const sameTarget = info.target === target
let shouldClose = false
shouldClose ||= !State.online.includes(info.target)
shouldClose ||= (sameKind && kind === 'screen')
shouldClose ||= (sameKind && kind === 'video' && sameTarget)
const shouldClose = (false
|| !State.online.includes(info.target)
|| (sameKind && kind === 'screen')
|| (sameKind && kind === 'video' && sameTarget)
)

if(shouldClose) {
info.rpc.close()

正在加载...
取消
保存