mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00:00
Call onDisconnected() not onConnected() when closing socket
Reviewed By: javache Differential Revision: D4953631 fbshipit-source-id: 578d212b19f7364346ea2ae8f3e52438ffc378bd
This commit is contained in:
parent
066bebbb7f
commit
aaab0e9674
@ -114,7 +114,7 @@ final public class ReconnectingWebSocket implements WebSocketListener {
|
||||
mMessageCallback = null;
|
||||
|
||||
if (mConnectionCallback != null) {
|
||||
mConnectionCallback.onConnected();
|
||||
mConnectionCallback.onDisconnected();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user