|
|
@ -141,7 +141,7 @@ export class AddServerDialog extends React.Component<Props, State> {
|
|
|
|
|
|
|
|
|
|
|
|
const connectionResult = this.attemptConnection(serverURL, channelId);
|
|
|
|
const connectionResult = this.attemptConnection(serverURL, channelId);
|
|
|
|
|
|
|
|
|
|
|
|
// Give 10s maximum for promise to revole. Else, throw error.
|
|
|
|
// Give 10s maximum for promise to resolve. Else, throw error.
|
|
|
|
const maxConnectionDuration = 10000;
|
|
|
|
const maxConnectionDuration = 10000;
|
|
|
|
const connectionTimeout = setTimeout(() => {
|
|
|
|
const connectionTimeout = setTimeout(() => {
|
|
|
|
if (!this.state.success) {
|
|
|
|
if (!this.state.success) {
|
|
|
|