Fixed panic on aborted connection (#1370)

This commit is contained in:
Arkadiy Paronyan 2016-06-21 15:56:00 +02:00 committed by Gav Wood
parent 57e9ed3f08
commit bca4e23df6

View File

@ -130,7 +130,9 @@ impl QueueSignal {
}
if self.signalled.compare_and_swap(false, true, AtomicOrdering::Relaxed) == false {
self.message_channel.send(UserMessage(SyncMessage::BlockVerified)).expect("Error sending BlockVerified message");
if let Err(e) = self.message_channel.send(UserMessage(SyncMessage::BlockVerified)) {
debug!("Error sending BlockVerified message: {:?}", e);
}
}
}