QueennN 4 년 전
부모
커밋
93c5e48d8f
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/App.vue

+ 5 - 0
src/App.vue

@@ -15,6 +15,11 @@ export default {
     });
 
     this.$store.state.peer.on("call", (call) => {
+      if (
+        this.$store.state.receiveCalls.findIndex((c) => c.peer == call.peer) !=
+        -1
+      )
+        return false;
       call.on("close", () => {
         console.log("call closed");
       });