MeltwaterArchive / datasift-java

Java client to interface with DataSift
http://www.datasift.com/
MIT License
10 stars 7 forks source link

stopConsumer() called incorrectly in HttpMultiThread.java #44

Closed dugjason closed 10 years ago

dugjason commented 11 years ago

In cases where we try to subscribe to an invalid stream hash, we will receive a 400 error from the Streaming API. Looking at https://github.com/datasift/datasift-java/blob/develop/src/org/datasift/streamconsumer/HttpMultiThread.java#L151-171, we can see that this will result in stopConsumer() being called - we should not be calling stopConsumer() if we have other active streams.

zcourts commented 10 years ago

resolved in 3.x