()
| 239 | } |
| 240 | |
| 241 | forceCloseSocket() { |
| 242 | this.stopPing(); |
| 243 | const { status } = this.props.connection; |
| 244 | if (status !== 'forcedDisconnecting' && status !== 'disconnected') { |
| 245 | this.props.dispatch({ |
| 246 | type: updateConnectionStatusActionType, |
| 247 | payload: { |
| 248 | status: 'forcedDisconnecting', |
| 249 | keyserverID: this.props.keyserverID, |
| 250 | }, |
| 251 | }); |
| 252 | } |
| 253 | this.finishClosingSocket(); |
| 254 | } |
| 255 | |
| 256 | finishClosingSocket(receivedResponseTo?: ?number) { |
| 257 | const { inflightRequests } = this.state; |
no test coverage detected