소스 검색

Ethan bug

master
Roderic Day 4 년 전
부모
커밋
dd9d5a4d6b
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      apps/rpc.js

+ 5
- 5
apps/rpc.js 파일 보기

for([uid, info] of Object.entries(allRPCs)) { for([uid, info] of Object.entries(allRPCs)) {
const sameKind = info.kind === kind const sameKind = info.kind === kind
const sameTarget = info.target === target 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) { if(shouldClose) {
info.rpc.close() info.rpc.close()

Loading…
취소
저장