]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/receiver.cpp
Varios cambios:
[z.facultad/75.42/plaqui.git] / Server / src / receiver.cpp
index 22cc1a89d5a03a4b4bd5f524fd80efe7baf4a012..6e6c503492662b9be5666e1577de2a04d48d29da 100644 (file)
@@ -68,13 +68,13 @@ void Receiver::real_run(void) {
        char buf[BUFSIZ];
        bool in_frame = false;
        stringstream ss;
-       while (!stop) {
+       while (!stop()) {
                try {
                        if (!socket.getline(buf, BUFSIZ)) {
                                return; // Se terminó la transmision.
                        }
                } catch (const sockerr& e) {
-                       error(e.serrno(), e.errstr());
+                       signal_error().emit(e.serrno(), e.errstr());
                        return;
                }
                string sbuf = buf;