1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-08-10 22:41:43 +02:00
This commit is contained in:
Anton Titovets
2025-01-21 13:30:46 +03:00
parent 5881093e63
commit 509c57d392
2 changed files with 2 additions and 3 deletions

View File

@@ -143,8 +143,8 @@ pub fn remove_inactive_connections(tcp: &mut AddIn) -> String {
}
}
for id in inactive_ids {
tcp.connections.remove(&id);
for id in &inactive_ids {
tcp.connections.remove(id);
}
json!({ "result": true, "removed_connections": inactive_ids }).to_string()

View File

@@ -3,7 +3,6 @@ mod methods;
use addin1c::{name, Variant};
use crate::core::getset;
use std::collections::HashMap;
use std::io::{Read, Write};
use std::net::{TcpListener, TcpStream};
// МЕТОДЫ КОМПОНЕНТЫ -------------------------------------------------------------------------------