aboutsummaryrefslogtreecommitdiff
path: root/src/message.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-11-30 16:52:54 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-11-30 16:52:54 +0100
commit3abece6f0a7edca476ee0c493f30dda8f8bcefd5 (patch)
treee794f512a262cca92db6d0a5f9d41b6be64d9db0 /src/message.cpp
parent9c2231c8fb45f32c7b1d23e14125bc58ea405e60 (diff)
downloadwanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.tar.xz
wanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.zip
core: stop ownership circles in connection
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/message.cpp b/src/message.cpp
index ad76897..9900939 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -4,6 +4,8 @@
#include <ios>
#include <sstream>
+#include <iostream>
+
namespace wanda
{
@@ -64,6 +66,7 @@ std::istream &operator>>(std::istream &in, message &message)
message.argument = std::optional{std::move(buffer)};
}
+ in.clear(in.rdstate() ^ std::ios_base::failbit);
return in;
}