Authored by 钱兢安

防止多次创建timer review by 洛克

... ... @@ -482,7 +482,9 @@
dispatch_async(dispatch_get_main_queue(), ^{
if (tag == 1) {//登录成功了之后才继续后面的。。。。
[self socketSendEndNotify];
_socketTimer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(socketSendEndNotify) userInfo:nil repeats:YES];
if(_socketTimer == nil){
_socketTimer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(socketSendEndNotify) userInfo:nil repeats:YES];
}
}
});
}
... ...