Skip to content

Commit

Permalink
fix: update something
Browse files Browse the repository at this point in the history
  • Loading branch information
cnzakii committed May 26, 2024
1 parent 5cb0285 commit 881abea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Protocol getInstance(String name) {
}

if (classes.containsKey(name)) {
synchronized (ProtocolFactory.class) {
synchronized (this) {
// double check
if (instances.containsKey(name)) {
return instances.get(name);
Expand Down

0 comments on commit 881abea

Please sign in to comment.