Skip to content

Commit

Permalink
Merge pull request #2763 from zongtanghu/feature_1.3.0_beta
Browse files Browse the repository at this point in the history
[#2761]ProtocolManager class's getCpProtocol()/getApProtocol() method ' codes can be optimized.
  • Loading branch information
chuntaojun authored May 8, 2020
2 parents 79a6f45 + 27346a9 commit 0be43f3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public CPProtocol getCpProtocol() {
synchronized (this) {
if (!cpInit) {
initCPProtocol();
}
cpInit = true;
cpInit = true;
}
}
return cpProtocol;
}
Expand All @@ -85,8 +85,8 @@ public APProtocol getApProtocol() {
synchronized (this) {
if (!apInit) {
initAPProtocol();
}
apInit = true;
apInit = true;
}
}
return apProtocol;
}
Expand Down

0 comments on commit 0be43f3

Please sign in to comment.