fix: exception in standalone mode
This commit is contained in:
@@ -40,7 +40,9 @@ func (s *StorageService) Start() error {
|
||||
}
|
||||
|
||||
func (s *StorageService) Close() error {
|
||||
Storage.DB.Close()
|
||||
if Storage.DB != nil {
|
||||
Storage.DB.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user