fix bug
This commit is contained in:
@@ -96,6 +96,7 @@ public class SocketManager implements IMogoCloudSocketManager, Callback {
|
||||
public void registerOnMessageListener(int msgType, IMogoCloudSocketOnMessageListener listener) {
|
||||
if (mListeners.containsKey(msgType)) {
|
||||
Logger.w(TAG, "msgType %d is exist.", msgType);
|
||||
return;
|
||||
}
|
||||
if (!mListeners.containsKey(msgType)) {
|
||||
mListeners.put(msgType, new ArrayList<>());
|
||||
|
||||
Reference in New Issue
Block a user