Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* (@copilot) Fixed adminUI, adminTab, and adminColumns configurations being incorrectly preserved during adapter uploads
* (@foxriver76) Added objects warn limit per instance
* (@Apollon77) Allows only numbers for `ts` and `lc` fields in state when provided for setState
* (@Apollon77) Respect the adapter specific stopTimeout in all cases instead a fallback os 4s
* (@GermanBluefox) Added typing for `visIconSets` in `io-package.json`(for vis-2 SVG icon sets)
* (@GermanBluefox) Added typing for `smartName` in the enum objects
* (@GermanBluefox) Added typing for `supportsLoadingMessage` in the instance objects
Expand Down
5 changes: 2 additions & 3 deletions packages/adapter/src/lib/adapter/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,8 @@ export class AdapterClass extends EventEmitter {

/**
* delays the fulfillment of the promise the amount of time.
* it will not fulfill during and after adapter shutdown
* It will directly fulfill without any delay during and after adapter shutdown
* (e.g. in an unload method)
*
* @param timeout - timeout in milliseconds
* @returns promise when timeout is over
Expand Down Expand Up @@ -10922,7 +10923,6 @@ export class AdapterClass extends EventEmitter {
exitCode: EXIT_CODES.ADAPTER_REQUESTED_TERMINATION,
updateAliveState: false,
});
setTimeout(() => this.terminate(EXIT_CODES.ADAPTER_REQUESTED_TERMINATION), 4000);
}
}
}
Expand Down Expand Up @@ -11242,7 +11242,6 @@ export class AdapterClass extends EventEmitter {
if (id === `system.adapter.${this.namespace}` && obj?.common?.enabled === false) {
this._logger.info(`${this.namespaceLog} Adapter is disabled => stop`);
this._stop();
setTimeout(() => this.terminate(EXIT_CODES.NO_ERROR), 4_000);
return;
}

Expand Down
Loading