+ DB access is now right and uses copied sessions + DB session is now specifying the safe state and the mode + Fixed the issue with too early ICCC messages regarding to late cache + Add the MIME type for Dart + Fixed the issuse with wrong order of shutdown handlers - TODO: Testing of these changes
14 lines
360 B
Go
14 lines
360 B
Go
package NumGen
|
|
|
|
import "github.com/SommerEngineering/Ocean/Log"
|
|
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
|
|
|
type ShutdownFunction struct {
|
|
}
|
|
|
|
func (a ShutdownFunction) Shutdown() {
|
|
Log.LogShort(senderName, LM.CategoryAPP, LM.LevelWARN, LM.MessageNameSHUTDOWN, `Shutting down the number generator.`)
|
|
db.Logout()
|
|
dbSession.Close()
|
|
}
|