fix: performance tweaks

Moved getConnection and ScheduleResourceTick above the try block.
Moved connection.release into the finally block
Increased default connection timeout to 1 minute.
This commit is contained in:
Linden committed 2021-12-06 17:55:50 +11:00
1 parent 87a5123117
commit 45b90c4ad3
4 files changed
+19 -12

No files matched your search

+3 -3
View File
@@ -95,8 +95,8 @@ try {
return result;
});
}
} catch(e) {
} catch (e) {
setTimeout(() => {
console.log(`^3Unable to load enhanced sync exports (download FXServer 4837+)^0`);
}, 1000)
}
}, 1000);
}