mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
11 lines
517 B
TypeScript
11 lines
517 B
TypeScript
const net = require('net') as typeof import('net') & {
|
|
getDefaultAutoSelectFamilyAttemptTimeout: ()=> number;
|
|
setDefaultAutoSelectFamilyAttemptTimeout: (value: number)=> void;
|
|
};
|
|
|
|
export default () => {
|
|
// Prior to Node 26, the default value is 250 ms, which is too low in some situations. Increase the default to match the Node 26
|
|
// default of 500 ms, at least until the app is upgraded to Node 26
|
|
net.setDefaultAutoSelectFamilyAttemptTimeout(Math.max(net.getDefaultAutoSelectFamilyAttemptTimeout(), 500));
|
|
};
|