I was seeing the main dialog stay up because the queue list control still had items in it, so IsQueueEmpty was returning false.
I'm not sure why they were there, and I've not been able to reproduce it.
They might be errors?
Anyway, my real question is, when is it safe to close FileZilla programmatically because there are no more attempts to be made.
CQueueCtrl::TransferNextFile has pretty complicated logic that I don't want to have to imitate.
Also, CCommandQueue::OnRetryTimer has pretty complicated logic.
Eventually, will the list ctrl window empty, in which case, I can just wait for IsQueueEmpty to return true, or do I need some more complicated or other check?
How do you tell (programmatically) when the queue is empty?
Moderator: Project members
If all transfers have completed, either successfully or have failed with too many errors, then IsQueueEmpty returns true and m_nProcessQueue will be 0.
If the user interrupts the transfer, m_nProcessQueue will be 0 as well, but depending how the transfer was stopped, IsQueueEmpty may or may not return true. If using the toolbar button for the queue, IsQueueEmpty would return false.[/code]
If the user interrupts the transfer, m_nProcessQueue will be 0 as well, but depending how the transfer was stopped, IsQueueEmpty may or may not return true. If using the toolbar button for the queue, IsQueueEmpty would return false.[/code]