From e8f12a4a1e080971a7eff367e2cf10c7d36530b2 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 25 Nov 2014 19:17:53 -0800 Subject: [PATCH] Add a desync check in next_block --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 2e800c9f..ac3f0521 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -247,6 +247,7 @@ impl<'conn> Notifications<'conn> { return Ok(notification); } + check_desync!(self.conn.conn.borrow()); match try!(self.conn.conn.borrow_mut().read_message_with_notification()) { NotificationResponse { pid, channel, payload } => { Ok(Notification {