Don't break on empty db.lobby_entry

This commit is contained in:
Thibault Duplessis 2012-04-05 20:22:55 +02:00
parent 5b2d0d951f
commit 3075b1a734

View file

@ -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 {