[Spice-commits] spiceconn.js

Pavel Grunt pgrunt at kemper.freedesktop.org
Thu Sep 8 13:00:17 UTC 2016


 spiceconn.js |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 411cdc5dfd40cefa9372efcc0060bc191cf45255
Author: Oliver Gutierrez <ogutierrez at redhat.com>
Date:   Thu Sep 8 14:51:58 2016 +0200

    Fixed syntax error in debugger command.
    
    Debugger is not an object or command. It is a reserved word and
    "DEBUG > 0 &&" syntax does not work with it

diff --git a/spiceconn.js b/spiceconn.js
index 010a446..9651b47 100644
--- a/spiceconn.js
+++ b/spiceconn.js
@@ -189,8 +189,11 @@ SpiceConn.prototype =
 
                 if (msg.type > 500)
                 {
-                    DEBUG > 0 && alert("Something has gone very wrong; we think we have message of type " + msg.type);
-                    DEBUG > 0 && debugger;
+                    if (DEBUG > 0)
+                    {
+                        alert("Something has gone very wrong; we think we have message of type " + msg.type);
+                        debugger;
+                    }
                 }
 
                 if (msg.size == 0)


More information about the Spice-commits mailing list