Skip to content
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

Fixed #57: Incorrect EOF test in getMessages #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomasvargiu
Copy link
Contributor

@thomasvargiu thomasvargiu commented Dec 27, 2016

It's possible to send a Logoff action. When this happens, Asterisk sends a response message and then close the connection. With this PR is possible to read the Logoff response message without throwing an exception if it's the last message and the connection is closed after that.

Also related to #121, because it's a good practice to send a logoff to disconnect, but sending it could throws an exception at this moment. This PR fix this.

Some little fixes on the code found debugging it.

@coveralls
Copy link

coveralls commented Dec 27, 2016

Coverage Status

Coverage remained the same at 91.932% when pulling 6cbc707 on thomasvargiu:hotfix/57-read-and-eof into 61e5860 on marcelog:master.

dkgroot pushed a commit to chan-sccp/PAMI that referenced this pull request Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants