|
@@ -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;
|
|
|
}
|
|
|
},
|