(details)
| 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; |
no test coverage detected