Java Application is not terminating while i use kiteconnect API

aakashps1995
aakashps1995 edited March 2019 in Java client
My normal java code running perfectly in same maven project,
But when i use kiteconnect it gives me output but java is not terminating execution,
i am using below code in application,
KiteConnect kiteConnect = new KiteConnect(apiKey);
kiteConnect.setUserId(clientId);
kiteConnect.setSessionExpiryHook(new SessionExpiryHook() {
@Override
public void sessionExpired() {
System.out.println("session expired");
}
});
kiteConnect.setAccessToken(accessToken);
kiteConnect.setPublicToken(publicToken);
when i remove this code then it runs perfectly,
please suggest me solution.
This discussion has been closed.