increase timeout for pi

This commit is contained in:
lone-cloud 2026-01-21 01:47:17 -08:00
parent 5b460cca95
commit b5c105be0e

View file

@ -170,7 +170,7 @@ export async function startDaemon() {
if (daemon && !daemon.killed) { if (daemon && !daemon.killed) {
daemon.kill(); daemon.kill();
await Bun.sleep(500); await Bun.sleep(5000);
} }
try { try {
@ -225,7 +225,7 @@ export async function startDaemon() {
} }
})(); })();
await Bun.sleep(3000); await Bun.sleep(5000);
try { try {
const socket = await Bun.connect({ const socket = await Bun.connect({
@ -240,7 +240,7 @@ export async function startDaemon() {
return proc; return proc;
} catch (error) { } catch (error) {
if (authError && !cleaned) { if (authError && !cleaned) {
logWarn(' Detected stale account data, cleaning up and retrying...'); logWarn('Detected stale account data, cleaning up and retrying...');
proc.kill(); proc.kill();
await unlinkDevice(); await unlinkDevice();
cleaned = true; cleaned = true;
@ -251,6 +251,11 @@ export async function startDaemon() {
if (proc.exitCode !== null) { if (proc.exitCode !== null) {
logError('signal-cli process exited with code:', proc.exitCode); logError('signal-cli process exited with code:', proc.exitCode);
} }
if (authError) {
logError('Account authorization failed. You may need to unlink and re-link your device.');
}
throw new Error('Failed to start signal-cli daemon'); throw new Error('Failed to start signal-cli daemon');
} }
} }
@ -258,7 +263,7 @@ export async function startDaemon() {
export async function restartDaemon() { export async function restartDaemon() {
if (daemon) { if (daemon) {
daemon.kill(); daemon.kill();
await Bun.sleep(500); await Bun.sleep(5000);
} }
daemon = await startDaemon(); daemon = await startDaemon();
} }