From 1f8b8040f374c36d90625d31e0fc1bef2e94f0a8 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 25 Nov 2003 03:00:23 +0000 Subject: [PATCH] Hago que cierre la transmision cuando se desconecta. --- Client/src/principal.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Client/src/principal.cpp b/Client/src/principal.cpp index 3b3cab1..fab7552 100644 --- a/Client/src/principal.cpp +++ b/Client/src/principal.cpp @@ -130,10 +130,15 @@ void Principal::on_mnu_file_disconnect() { if (conexion == NULL) return; - PlaQui::Server::Command c("connection", "stop"); + PlaQui::Server::Command c("transmission", "stop"); c.add_arg(conexion->get_host()); - c.add_arg(conexion->get_port()); + c.add_arg("7528"); conexion->send(c); + PlaQui::Server::Command c2("connection", "stop"); + c2.add_arg(conexion->get_host()); + c2.add_arg(conexion->get_port()); + conexion->send(c2); + //conexion->finish(); } void Principal::on_mnu_file_connect() -- 2.43.0