-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
userAgent.close closes all threads that were opened during the call #24
base: master
Are you sure you want to change the base?
userAgent.close closes all threads that were opened during the call #24
Conversation
could you use unix end of lines in RegisterHandler? if we cancel timers in userAgent.close(), that's probably ok but it means we should create a new UserAgent for next register in peers-gui, etc. and that's not done today. That's okay if you don't have time to do that but it implies an interface change (and all the corresponding testing...). |
Do you mean running like a I'll definitely test the peers-gui and make the necessary changes for it to work as well. |
yes, dos2unix on RegisterHandler should be enough to fix end of lines. It Actually, if you fix peers-gui, could you check all places where thank you On Wed, Sep 7, 2016 at 12:01 AM, Derek Clifford [email protected]
|
I ran dos2unix on the RegisterHandler file -- github doesn't seem to like it too much though. Looking at all the instances of userAgent.close() I found 5 of them. Here's my findings:
Let me know if you have concerns with the removal of userAgent.close in the AccountFrame. |
I applied this PR on my local build and when I call public void stopSession() {
if (rtpSession != null) {
rtpSession.stop();
while (!rtpSession.isSocketClosed()) { // <=== socket never closed!
try {
Thread.sleep(15);
} catch (InterruptedException e) {
logger.debug("sleep interrupted");
}
}
rtpSession = null;
}
// ... as if the backing This is observable profiling the demo: issuing |
I've had this fix running in our fork for a while now. Fixes #12