i am trying to restart network manager by using
and then again calling
but it always give error message
"Only a single instance of the World Peer Group may be instantiated at a single time."
I think as stopNetwork() is a void method it do not wait for managet to stop and jump to next line which is startNetwork();
so is there any way I can hold ther start of Network manager before it completely stop?