wasync
wasync copied to clipboard
Bug in TransportsUtil.java
Hi,
I think there's a bug in class TransportsUtil.java.
for (Object m : l) {
return matchDecoder(e, m, nd, decodedObjects);
}
matchDecoder will be invoked only for the first element of the list and the following elements will be ignored.
Not sure but something like this would be better :
ArrayList<Object> list = new ArrayList<>();
for (Object m : l) {
list.add(matchDecoder(e, m, nd, decodedObjects));
}
return list;
@Michenux Pull request welcomed :-)
Fixed https://github.com/Atmosphere/wasync/pull/153
This sounds similar to the issue I reported in #130, doesn't it? Maybe #130 wasn't properly fixed after all.
Yes, the problem i had is the same as in #130. Works well with the fix but i tested it only with polling transport.
There were build test-failures, please reconsider the fix.