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

Multiple fragments in multiple connections issue #13

Open
Nosfi opened this issue Oct 24, 2012 · 0 comments
Open

Multiple fragments in multiple connections issue #13

Nosfi opened this issue Oct 24, 2012 · 0 comments

Comments

@Nosfi
Copy link
Contributor

Nosfi commented Oct 24, 2012

I already solved this issue but i cannot commit here...

When a Snep LLcp connection becomes active we need to reset the fragment reader, so it considers the fragment counts, complete, etc... correctly

To make it work i changed:

From 'AbstractSnepImpl':

@Override
public void onLlcpActive(Llcp llcp) {
    reader.reset();
}

From 'FragmentReader':

public void reset() {
    out.reset();
    fragmentCount = 0;
}

Hope it helps someone...

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

No branches or pull requests

1 participant