X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/7e74b790d290cd7d776349503bb361c47933c01f..6f70c17ffefd6150b68ac0f64a8116e730437408:/Server/src/connection.cpp diff --git a/Server/src/connection.cpp b/Server/src/connection.cpp index 75915c9..c355c86 100644 --- a/Server/src/connection.cpp +++ b/Server/src/connection.cpp @@ -74,19 +74,21 @@ Connection::Connection(const std::string& host, const Port& port): #endif // DEBUG } -void Connection::finish(bool attach) { +void Connection::finish(void) { #ifdef DEBUG cerr << __FILE__ << "(" << __LINE__ << ")" - << ": finish(attach = " << attach << ")." << endl; + << ": finish();" << endl; #endif // DEBUG //socket_mutex.lock(); try { socket->shutdown(sockbuf::shut_readwrite); + // FIXME socket->close(sockbuf::shut_readwrite); + // close(socket->sd()); } catch (const sockerr& e) { - error(e.serrno(), e.errstr()); + signal_error().emit(e.serrno(), e.errstr()); } //socket_mutex.unlock(); - Runnable::finish(attach); + Runnable::finish(); } const string& Connection::get_host(void) const {