Smack: transfer files in both directions simultaneously

I wrote a program with smack, the program is similar to totalcommander, which is designed to transfer files via Jabber. The program almost works. He has a problem when a person sends to a file, it can’t receive files from this person. And vice versa.

Has anyone know about this thing?

and sorry for the errors in the text