Skip to content

Commit 8dd5fdd

Browse files
authored
Fix a data race in GrpcConnection when retrieving the language token. (#8257)
This is a backport of cr/377421930. #no-changelog
1 parent 62538d7 commit 8dd5fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firestore/core/src/remote/grpc_connection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class ClientLanguageToken {
189189
value_ = std::move(value);
190190
}
191191

192-
const std::string& Get() const {
192+
std::string Get() const {
193193
Guard guard(mutex_);
194194
return value_;
195195
}

0 commit comments

Comments
 (0)