forked from Ivasoft/mattermost-mobile
Use timeoutInterval in ms
This commit is contained in:
@@ -36,7 +36,7 @@ async function getDeviceIdForPing(serverUrl: string, checkDeviceId: boolean) {
|
||||
}
|
||||
|
||||
// Default timeout interval for ping is 5 seconds
|
||||
export const doPing = async (serverUrl: string, verifyPushProxy: boolean, timeoutInterval = 5) => {
|
||||
export const doPing = async (serverUrl: string, verifyPushProxy: boolean, timeoutInterval = 5000) => {
|
||||
let client: Client;
|
||||
try {
|
||||
client = await NetworkManager.createClient(serverUrl);
|
||||
|
||||
Reference in New Issue
Block a user