fix the database issue

This commit is contained in:
Max Lv
2014-03-01 11:39:47 +08:00
parent cc5fafbd99
commit 9218ee42c1
2 changed files with 17 additions and 9 deletions
@@ -107,7 +107,11 @@ trait BaseService {
if (state != s) {
val n = callbacks.beginBroadcast()
for (i <- 0 to n - 1) {
callbacks.getBroadcastItem(i).stateChanged(s, msg)
try {
callbacks.getBroadcastItem(i).stateChanged(s, msg)
} catch {
case _: Exception => // Ignore
}
}
callbacks.finishBroadcast()
state = s