fix intellij proj

This commit is contained in:
Jai A
2024-12-11 20:45:38 -08:00
parent 381cbe837b
commit 10ef25eabb
4 changed files with 14 additions and 28 deletions

View File

@@ -206,6 +206,13 @@ impl FriendsSocket {
tokio::task::spawn(async move {
let res = async {
let state = crate::State::get().await?;
{
if state.friends_socket.write.lock().await.is_some() {
return Ok(());
}
}
state
.friends_socket
.connect(