This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ func (this *Application) Run(router Router) {
|
||||
//this.Port = port
|
||||
this.Port = this.Config.GetString("port")
|
||||
|
||||
if this.connectDbFunc != nil && this.Db.DB.Ping() != nil {
|
||||
if this.connectDbFunc != nil && (this.Db.DB==nil||this.Db.DB.Ping() != nil) {
|
||||
this.Db.SetConnect(this.connectDbFunc)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user