kiteConnect.generateSession(requestToken, api_secret) spawns threads that take 5 minutes to expire.

nkr
Hi,

When I use the line kiteConnect.generateSession(requestToken, api_secret) in my code, it spaws OKHttp taskrunner and UrlChecker threads that die out after exactly 5 minutes after the execution of the above mentioned line of code. When the program runs long (places orders and receives web ticker), these threads dont die at all which raises the issue of the clean exit of my program. Can you please guide a little on how these threads are supposed to work, how is their ttyl decided and how can I manage them to do a clean exit of my code?
Sign In or Register to comment.