diff --git a/bigbluebutton-html5/client/compatibility/kurento-extension.js b/bigbluebutton-html5/client/compatibility/kurento-extension.js
index c3507d4f8ad9eadaa6f0ed1e84f9cac82b9e31d0..84ba9475d2c82c95f533e0cbd7c2a159ddb7a8cc 100644
--- a/bigbluebutton-html5/client/compatibility/kurento-extension.js
+++ b/bigbluebutton-html5/client/compatibility/kurento-extension.js
@@ -97,6 +97,10 @@ KurentoManager.prototype.exitScreenShare = function () {
       this.kurentoScreenshare.logger.info('  [exitScreenShare] Exiting screensharing');
     }
 
+    if(this.kurentoScreenshare.webRtcPeer) {
+      this.kurentoScreenshare.webRtcPeer.peerConnection.oniceconnectionstatechange = null;
+    }
+
     if (this.kurentoScreenshare.ws !== null) {
       this.kurentoScreenshare.ws.onclose = function () {};
       this.kurentoScreenshare.ws.close();