Don't break on empty db.lobby_entry
This commit is contained in:
parent
5b2d0d951f
commit
3075b1a734
|
@ -12,9 +12,9 @@ final class EntryMemo(getId: () ⇒ IO[Option[Int]]) {
|
|||
refresh.unsafePerformIO
|
||||
|
||||
def refresh = for {
|
||||
idOption ← getId()
|
||||
idOption ← getId() except (_ ⇒ io(none))
|
||||
} yield {
|
||||
privateId = idOption err "No last entry found"
|
||||
privateId = idOption | 0
|
||||
}
|
||||
|
||||
def ++ : IO[Int] = io {
|
||||
|
|
Loading…
Reference in a new issue