mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Call onDisconnected() not onConnected() when closing socket
Reviewed By: javache Differential Revision: D4953631 fbshipit-source-id: 578d212b19f7364346ea2ae8f3e52438ffc378bd
This commit is contained in:
committed by
Facebook Github Bot
parent
066bebbb7f
commit
aaab0e9674
+1
-1
@@ -114,7 +114,7 @@ final public class ReconnectingWebSocket implements WebSocketListener {
|
||||
mMessageCallback = null;
|
||||
|
||||
if (mConnectionCallback != null) {
|
||||
mConnectionCallback.onConnected();
|
||||
mConnectionCallback.onDisconnected();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user