This commit is contained in:
zhongchao
2021-02-02 10:12:43 +08:00
parent 1147a3dac9
commit 885c6b862c
3 changed files with 15 additions and 11 deletions

View File

@@ -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<>());