From: Leandro Lucarella Date: Tue, 25 Nov 2003 03:00:23 +0000 (+0000) Subject: Hago que cierre la transmision cuando se desconecta. X-Git-Tag: svn_import~178 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/1f8b8040f374c36d90625d31e0fc1bef2e94f0a8?ds=sidebyside Hago que cierre la transmision cuando se desconecta. --- 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()