فهرست منبع

fixed hungup for pro

Josh 4 سال پیش
والد
کامیت
e26109bdaa
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      resources/views/app/video/call.blade.php

+ 3 - 1
resources/views/app/video/call.blade.php

@@ -115,6 +115,8 @@
 
                     otSessionId: '',
 
+                    publisher: null,
+
                     checkingForNextPatient: false,
                     noNextPatient: false,
 
@@ -202,6 +204,7 @@
                         var sef = this;
                         if (this.otSession) {
                             try {
+                                this.otSession.unpublish(this.publisher);
                                 this.otSession.disconnect();
                             } catch (e) {
                                 console.log('Was already disconnected.');
@@ -217,7 +220,6 @@
                                 alert("No publisher");
                              }
                              window.top.hideRHS();
-                             window.location.reload();
                             // this.client = false;
                         }
                     },