Guard against invalid last disconnect time
This commit is contained in:
parent
e61b83c5ed
commit
20c272ff3d
@ -148,7 +148,7 @@ func getSavedStats() models.Stats {
|
||||
savedLastDisconnectTime, savedLastDisconnectTimeErr := data.GetLastDisconnectTime()
|
||||
|
||||
var lastDisconnectTime utils.NullTime
|
||||
if savedLastDisconnectTimeErr == nil {
|
||||
if savedLastDisconnectTimeErr == nil && savedLastDisconnectTime.Valid {
|
||||
lastDisconnectTime = savedLastDisconnectTime
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user