mirror of
https://github.com/unraid/api.git
synced 2026-04-30 04:01:10 -05:00
fix: ensure we catch non errors for libvirt
This commit is contained in:
@@ -151,7 +151,7 @@ const watchLibvirt = async (useCache = true) => {
|
||||
return watchLibvirt();
|
||||
} catch (error: unknown) {
|
||||
// We need to try and reconnect
|
||||
if ((error as Error).message.includes('invalid connection pointer')) {
|
||||
if (`${error}`.includes('invalid connection pointer')) {
|
||||
log.warn('Reconnecting to libvirt socket...');
|
||||
await sleep(5_000);
|
||||
return watchLibvirt(false);
|
||||
|
||||
Reference in New Issue
Block a user