summaryrefslogtreecommitdiff
path: root/src/network/socket_handler.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-03-24 20:31:02 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-03-24 20:31:02 +0100
commitffc820e234ebba39a0f04607f9a0fb044fe31b73 (patch)
tree66ece312b85f89b15e10c9f91444641d8e07c552 /src/network/socket_handler.cpp
parente196d2f1f400f5c9634ed42fcbdf5c5fb63a13fb (diff)
downloadbiboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.tar.gz
biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.tar.bz2
biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.tar.xz
biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.zip
Reconnected immediately to the XMPP whenever it closes the connection
Diffstat (limited to 'src/network/socket_handler.cpp')
-rw-r--r--src/network/socket_handler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/socket_handler.cpp b/src/network/socket_handler.cpp
index f344786..6f91e74 100644
--- a/src/network/socket_handler.cpp
+++ b/src/network/socket_handler.cpp
@@ -222,6 +222,9 @@ void SocketHandler::close()
{
this->connected = false;
this->connecting = false;
+ this->in_buf.clear();
+ this->out_buf.clear();
+ this->port.clear();
this->poller->remove_socket_handler(this->get_socket());
::close(this->socket);
// recreate the socket for a potential future usage