commenting out debugging code

This commit is contained in:
gorhill 2015-07-12 19:33:12 -04:00
parent d9da7c996b
commit 2ec0161471
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ vAPI.messaging = {
} catch (ex) { } catch (ex) {
} }
if ( this.port === null ) { if ( this.port === null ) {
console.error("uBlock> Can't patch things up. It's over."); //console.error("uBlock> Can't patch things up. It's over.");
vAPI.shutdown.exec(); vAPI.shutdown.exec();
return false; return false;
} }
@ -207,7 +207,7 @@ MessagingChannel.prototype.sendTo = function(message, toTabId, toChannel, callba
// performance become a risk -- especially for long-lived, dynamic // performance become a risk -- especially for long-lived, dynamic
// pages. Guard against this. // pages. Guard against this.
if ( messaging.pendingCount > 25 ) { if ( messaging.pendingCount > 25 ) {
console.error('uBlock> Sigh. Main process is sulking. Will try to patch things up.'); //console.error('uBlock> Sigh. Main process is sulking. Will try to patch things up.');
messaging.close(); messaging.close();
} }
if ( messaging.port === null ) { if ( messaging.port === null ) {

View File

@ -259,7 +259,7 @@ MessagingChannel.prototype.sendTo = function(message, toTabId, toChannel, callba
// performance become a risk -- especially for long-lived, dynamic // performance become a risk -- especially for long-lived, dynamic
// pages. Guard against this. // pages. Guard against this.
if ( messaging.pendingCount > 25 ) { if ( messaging.pendingCount > 25 ) {
console.error('uBlock> Sigh. Main process is sulking. Will try to patch things up.'); //console.error('uBlock> Sigh. Main process is sulking. Will try to patch things up.');
messaging.close(); messaging.close();
} }
messaging.connect(); messaging.connect();