mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Don't start application until all components were initialized
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user