Custom Adapter Listener Implementation problem

Hi,

we are developing a custom adapter using wmADK.facing issue in implementing listener. I am not able to control the waitforData() methods iteration. sample adapter provided by wm getting invoked for every 20 sec. we are trying to find out whether any parameters to be set for iteration. there is no parameter set for sample adapter any where.

Due to uncontrol of loop, function is getting failed and destroyconnection() is getting invoked.

can any one help me on this, this is very uregent?
kindly help me out if any one aware of this.

Thanks in advance