Skip to content

Commit 1f88dcb

Browse files
committed
fix(starbase): dont null out mqtt client, wait for event errors
1 parent e0457c6 commit 1f88dcb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Services/starbase.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ class Starbase {
5454
return resolve();
5555
});
5656
} catch (error) {
57-
mqttClient.client.end();
58-
mqttClient = null;
59-
return resolve();
57+
if (!error.message.includes('path is already defined')) {
58+
mqttClient.client.end();
59+
mqttClient = null;
60+
}
6061
}
6162
});
6263
}

0 commit comments

Comments
 (0)