1
0
Fork 0
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:
Chocobozzz 2018-04-04 11:04:14 +02:00
parent 72de91cb10
commit 3d3441d6c7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 26 additions and 21 deletions

View file

@ -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()