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