How can I find when the user that I’'m sending a file stop the file transfer?
I use the follow pattern:
while(!outgoingFileTransfer.isDone()) {
// updating a progress bar widget
// get some sleep a little
}
// get the status and give appropriate feedback
The bad luck it’‘s that the file transfer isn’'t done when the receiver cancel a previously started transfer.
When i receive a file, that piece of code works fine…
What’'s wrong here or what is the work-around needed to make things happen?
Thanks!
P.S.: I test my Jabber client using Spark for receive the file; it’‘s there any problem? Because I’'ve seen that the IQ.set packet is send by Spark after that the file transfer requestor close the file transfer.
Message was edited by: narcis