Skip to content

Commit

Permalink
Actually assign value
Browse files Browse the repository at this point in the history
  • Loading branch information
neacsu committed Nov 18, 2024
1 parent 9155742 commit 14992dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/wireguard/src/peer_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<St: Storage + Clone + 'static> PeerController<St> {
.insert(peer.public_key.clone(), bandwidth_storage_manager);
// try to immediately update the host information, to eliminate races
if let Ok(host_information) = self.wg_api.inner.read_interface_data() {
*self.host_information.write().await
*self.host_information.write().await = host_information;
}
tokio::spawn(async move {
if let Err(e) = handle.run().await {
Expand Down

0 comments on commit 14992dc

Please sign in to comment.