add Engine stop method

This commit is contained in:
keorn
2016-12-09 14:52:08 +01:00
parent c7f1260775
commit 56e9dab9de
3 changed files with 20 additions and 3 deletions

View File

@@ -1445,6 +1445,12 @@ impl ProvingBlockChainClient for Client {
}
}
impl Drop for Client {
fn drop(&mut self) {
self.engine.stop();
}
}
#[cfg(test)]
mod tests {