yea this can be a workaround i will try if it works i will have to keep on sending the pings(though server will respond with service un available i am not authenticated yet ) until i perform next actions.
But what i did for now is forked code from your repo and changed the XMPPTCPConnection.java and PacketWriter.java to overcome the problem that i had now it works as i want.
i ran build.bash -b 4.0 -a 19
it gave the jar file.
But i am not able to start debugger It gives following error all the time
Unable to instantiate either Smack debugger class
Can't initialize the configured debugger!
What wrong am i doiing here during the build ? i tried to modify build.xml but it did not work
Please help