autocommit 2022-02-09 18:28:39 CET
This commit is contained in:
parent
84d89afbde
commit
83c3fb99f9
11 changed files with 120 additions and 17 deletions
|
|
@ -173,7 +173,6 @@ pub fn cancel_offers<T: Vtable>(src: &T::Source) {
|
|||
let data = T::get_source_data(src);
|
||||
while let Some((_, offer)) = data.offers.pop() {
|
||||
let data = T::get_offer_data(&offer);
|
||||
log::error!("cancel_offers");
|
||||
data.source.take();
|
||||
destroy_offer::<T>(&offer);
|
||||
}
|
||||
|
|
@ -268,7 +267,6 @@ fn destroy_offer<T: Vtable>(offer: &T::Offer) {
|
|||
}
|
||||
}
|
||||
}
|
||||
log::error!("destroy_offer");
|
||||
if let Some(src) = data.source.take() {
|
||||
let src_data = T::get_source_data(&src);
|
||||
src_data.offers.remove(&T::get_offer_id(offer));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue