Re: How to cancel a tny_transport_account_send?



On Mon, 2008-01-21 at 14:19 +0100, Sergio Villar Senin wrote:

> I'm trying to cancel the tny_transport_account_send that is performed in
> the TnyCamelSendQueue with tny_account_cancel, but it does nothing. The
> reason is because the "cancel" field of the private structure that
> belongs to TnyCamelAccount is empty. What is means is that maybe we need
> to enclose that call between the tny_camel_account_start/stop_operation.

Indeed.

Cancels can only work for operations enclosed with camel_operation_start
and camel_operation_stop. The tny_camel_account_start/stop things do it.


-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]