instagram4j / instagram4j-realtime

Java MQTT/MQTToT client for instagram realtime protocol
Apache License 2.0
6 stars 1 forks source link

[BUG] IOException on disconnecting #6

Open ErrorxCode opened 2 years ago

ErrorxCode commented 2 years ago

When I call the disconnect() method, it fails and throws an IOException. The Stack trace is as follows :-

Caused by: java.io.IOException: End of stream
    at com.github.instagram4j.realtime.mqtt.MQTToTClient.read(MQTToTClient.java:105)
    at com.github.instagram4j.realtime.mqtt.MQTToTClient.readPacket(MQTToTClient.java:75)
    at com.github.instagram4j.realtime.mqtt.MQTToTClient.connect(MQTToTClient.java:70)
    at com.github.instagram4j.realtime.IGRealtimeClient.connect(IGRealtimeClient.java:65)

The line which threw this exception is :

realtimeClient.connect();