QueennN hace 4 años
padre
commit
93c5e48d8f
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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");
       });