🔧 fix(lib/login/napcat): increase QR update timeout from 30s to 90s for better handling of delays

This commit is contained in:
Jerry 2025-12-19 21:47:37 +08:00
parent a8eef3e21b
commit b08e83bc18

View File

@ -65,7 +65,7 @@ export default class NapcatService {
* @param timeout * @param timeout
* @returns {Promise<unknown>} * @returns {Promise<unknown>}
*/ */
async waitForQrUpdate(timeout = 30000) { async waitForQrUpdate(timeout = 90000) {
if (!fs.existsSync(this.qrPath)) { if (!fs.existsSync(this.qrPath)) {
return 'none'; return 'none';
} }