MCPcopy Create free account
hub / github.com/apache/cloudstack / _fail

Method _fail

systemvm/agent/noVNC/core/rfb.js:1112–1134  ·  view source on GitHub ↗
(details)

Source from the content-addressed store, hash-verified

1110 * should be logged but not sent to the user interface.
1111 */
1112 _fail(details) {
1113 switch (this._rfbConnectionState) {
1114 case 'disconnecting':
1115 Log.Error("Failed when disconnecting: " + details);
1116 break;
1117 case 'connected':
1118 Log.Error("Failed while connected: " + details);
1119 break;
1120 case 'connecting':
1121 Log.Error("Failed when connecting: " + details);
1122 break;
1123 default:
1124 Log.Error("RFB failure: " + details);
1125 break;
1126 }
1127 this._rfbCleanDisconnect = false; //This is sent to the UI
1128
1129 // Transition to disconnected without waiting for socket to close
1130 this._updateConnectionState('disconnecting');
1131 this._updateConnectionState('disconnected');
1132
1133 return false;
1134 }
1135
1136 _setCapability(cap, val) {
1137 this._capabilities[cap] = val;

Callers 15

_socketOpenMethod · 0.95
_socketCloseMethod · 0.95
_negotiateSecurityMethod · 0.95
_handleSecurityReasonMethod · 0.95
_negotiateTightAuthMethod · 0.95
_negotiateRA2neAuthMethod · 0.95
_handleSecurityResultMethod · 0.95
_initMsgMethod · 0.95

Calls 1

Tested by

no test coverage detected