Fix plugin register when Prosody enabled but not installed
This commit is contained in:
parent
6cdf44e92a
commit
543e454b51
@ -1,10 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## ???
|
## v4.0.1
|
||||||
|
|
||||||
### Minor changes and fixes
|
### Minor changes and fixes
|
||||||
|
|
||||||
* NPM dependencies update
|
* NPM dependencies update
|
||||||
|
* Fix plugin register when Prosody enabled but not installed
|
||||||
|
|
||||||
## v4.0.0
|
## v4.0.0
|
||||||
|
|
||||||
|
@ -23,7 +23,11 @@ async function register (options: RegisterServerOptions): Promise<any> {
|
|||||||
await initCustomFields(options)
|
await initCustomFields(options)
|
||||||
await initRouters(options)
|
await initRouters(options)
|
||||||
|
|
||||||
|
try {
|
||||||
await ensureProsodyRunning(options)
|
await ensureProsodyRunning(options)
|
||||||
|
} catch (error) {
|
||||||
|
options.peertubeHelpers.logger('Error when launching Prosody: ' + (error as string))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function unregister (): Promise<any> {
|
async function unregister (): Promise<any> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user