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:
liaochuntao 2020-05-08 19:10:42 +08:00 committed by GitHub
commit 0be43f33bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}