mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-09 12:01:58 +00:00
Always assign credentials on rpc::Client after connecting
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
7d59b2d861
commit
ec7c6f3f91
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,6 @@ impl Client {
|
|||
return Err(err);
|
||||
}
|
||||
};
|
||||
self.state.write().credentials = Some(credentials.clone());
|
||||
credentials
|
||||
};
|
||||
|
||||
|
@ -334,6 +333,7 @@ impl Client {
|
|||
match self.establish_connection(&credentials, cx).await {
|
||||
Ok(conn) => {
|
||||
log::info!("connected to rpc address {}", *ZED_SERVER_URL);
|
||||
self.state.write().credentials = Some(credentials.clone());
|
||||
if !read_from_keychain {
|
||||
write_credentials_to_keychain(&credentials, cx).log_err();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue