summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamhed <samuel@cendio.se>2016-08-26 12:20:51 +0200
committersamhed <samuel@cendio.se>2016-08-26 12:20:51 +0200
commit4e0c36dda708628836dc6f5d68fc40d05c7716d9 (patch)
tree95f639804f4cf232f14246cf86c47749416002fa
parent9104d3b5672c1391fd40ff32e6bac7b5d3ed86a6 (diff)
downloadnovnc-4e0c36dda708628836dc6f5d68fc40d05c7716d9.tar.gz
Add missing return values
-rw-r--r--include/rfb.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/rfb.js b/include/rfb.js
index 3e7ee7d..bc5555a 100644
--- a/include/rfb.js
+++ b/include/rfb.js
@@ -249,6 +249,7 @@ var RFB;
}
this._updateState('connect');
+ return true;
},
disconnect: function () {
@@ -274,6 +275,7 @@ var RFB;
RFB.messages.keyEvent(this._sock, XK_Delete, 0);
RFB.messages.keyEvent(this._sock, XK_Alt_L, 0);
RFB.messages.keyEvent(this._sock, XK_Control_L, 0);
+ return true;
},
xvpOp: function (ver, op) {
@@ -307,6 +309,7 @@ var RFB;
RFB.messages.keyEvent(this._sock, code, 1);
RFB.messages.keyEvent(this._sock, code, 0);
}
+ return true;
},
clipboardPasteFrom: function (text) {
@@ -822,7 +825,7 @@ var RFB;
}
}
- this._fail("No supported sub-auth types!");
+ return this._fail("No supported sub-auth types!");
},
_negotiate_authentication: function () {
@@ -873,6 +876,8 @@ var RFB;
return false;
case 2:
return this._fail("Too many auth attempts");
+ default:
+ return this._fail("Unknown SecurityResult");
}
},
@@ -989,6 +994,7 @@ var RFB;
} else {
this._updateState('normal', 'Connected (unencrypted) to: ' + this._fb_name);
}
+ return true;
},
_init_msg: function () {
@@ -1012,6 +1018,9 @@ var RFB;
case 'ServerInitialisation':
return this._negotiate_server_init();
+
+ default:
+ return this._fail("Unknown state: " + this._rfb_state);
}
},