mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Don't start application until all components were initialized
This commit is contained in:
parent
72de91cb10
commit
3d3441d6c7
2 changed files with 26 additions and 21 deletions
|
@ -60,6 +60,8 @@ class Emailer {
|
|||
async checkConnectionOrDie () {
|
||||
if (!this.transporter) return
|
||||
|
||||
logger.info('Testing SMTP server...')
|
||||
|
||||
try {
|
||||
const success = await this.transporter.verify()
|
||||
if (success !== true) this.dieOnConnectionFailure()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue