Skip to content

Commit

Permalink
Release 1.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Mar 16, 2024
1 parent 72193af commit bdd4f1d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,8 @@ export class Matterbridge {
* Restarts the process by spawning a new process and exiting the current process.
*/
private async restartProcess() {
this.log.info('Restarting still not implemented');
//this.log.info('Restarting still not implemented');
//return;
this.log.info('Matterbridge is restarting...');

await this.cleanup('Matterbridge is restarting...', true);
this.hasCleanupStarted = false;
Expand Down Expand Up @@ -551,8 +550,7 @@ export class Matterbridge {

setTimeout(async () => {
this.log.info('Cleanup completed.');
//this.log = undefined;
if (restart) console.log(this);
//if (restart) console.log(this);
if (restart) await this.initialize();
else process.exit(0);
}, 2 * 1000);
Expand Down Expand Up @@ -1372,10 +1370,15 @@ export class Matterbridge {
this.log.debug('Matter server closed');
this.commissioningController = undefined;
this.commissioningServer = undefined;
this.matterAggregator = undefined;
this.matterServer = undefined;
}

// Matterbridge version
/**
* Retrieves the latest version of a package from the npm registry.
* @param packageName - The name of the package.
* @returns A Promise that resolves to the latest version of the package.
*/
private async getLatestVersion(packageName: string): Promise<string> {
return new Promise((resolve, reject) => {
exec(`npm view ${packageName} version`, (error, stdout) => {
Expand Down

0 comments on commit bdd4f1d

Please sign in to comment.