Merge pull request #2763 from zongtanghu/feature_1.3.0_beta
[#2761]ProtocolManager class's getCpProtocol()/getApProtocol() method ' codes can be optimized.
This commit is contained in:
commit
0be43f33bf
@ -75,8 +75,8 @@ public class ProtocolManager
|
||||
synchronized (this) {
|
||||
if (!cpInit) {
|
||||
initCPProtocol();
|
||||
}
|
||||
cpInit = true;
|
||||
}
|
||||
}
|
||||
return cpProtocol;
|
||||
}
|
||||
@ -85,8 +85,8 @@ public class ProtocolManager
|
||||
synchronized (this) {
|
||||
if (!apInit) {
|
||||
initAPProtocol();
|
||||
}
|
||||
apInit = true;
|
||||
}
|
||||
}
|
||||
return apProtocol;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user