Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((reply) => {
if (reply === dbus.RequestNameReply.EXISTS) {
this.serviceName = `${this.serviceName}.instance${process.pid}`;
return this._bus.requestName(this.serviceName);
}
})
.catch((err) => {