[#2761]ProtocolManager class's getCpProtocol()/getApProtocol() method' codes can be optimized.
This commit is contained in:
parent
79a6f453d2
commit
27346a9f43
@ -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