aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-04 11:04:14 +0200
committerChocobozzz <me@florianbigard.com>2018-04-04 11:04:14 +0200
commit3d3441d6c7a5646388ab0a77acad57fdb63b9d32 (patch)
tree4fa3d1a52fc06d0a6ab65d5fdd7a00628f92ae95 /server/lib
parent72de91cb109b091fff607fbb0c6968bb8a1c97f3 (diff)
downloadPeerTube-3d3441d6c7a5646388ab0a77acad57fdb63b9d32.tar.gz
PeerTube-3d3441d6c7a5646388ab0a77acad57fdb63b9d32.tar.zst
PeerTube-3d3441d6c7a5646388ab0a77acad57fdb63b9d32.zip
Don't start application until all components were initialized
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/emailer.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 85cc725fa..d17749b9a 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -60,6 +60,8 @@ class Emailer {
60 async checkConnectionOrDie () { 60 async checkConnectionOrDie () {
61 if (!this.transporter) return 61 if (!this.transporter) return
62 62
63 logger.info('Testing SMTP server...')
64
63 try { 65 try {
64 const success = await this.transporter.verify() 66 const success = await this.transporter.verify()
65 if (success !== true) this.dieOnConnectionFailure() 67 if (success !== true) this.dieOnConnectionFailure()