changeset 482:eb6163fb1ee6

Socket: remove post asserts on recv/send
author David Demelier <markand@malikania.fr>
date Wed, 11 Nov 2015 22:22:40 +0100
parents b75b857aae11
children 3f29e6c05983
files C++/modules/Socket/Sockets.h
diffstat 1 files changed, 2 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/C++/modules/Socket/Sockets.h	Wed Nov 11 08:28:11 2015 +0100
+++ b/C++/modules/Socket/Sockets.h	Wed Nov 11 22:22:40 2015 +0100
@@ -1118,12 +1118,7 @@
 		m_action = Action::None;
 		m_condition = Condition::None;
 
-		unsigned nbread = m_proto.recv(*this, data, length);
-
-		assert((m_action == Action::None    && m_condition == Condition::None) ||
-		       (m_action == Action::Receive && m_condition != Condition::None));
-
-		return nbread;
+		return m_proto.recv(*this, data, length);
 	}
 
 	/**
@@ -1164,12 +1159,7 @@
 		m_action = Action::None;
 		m_condition = Condition::None;
 
-		unsigned nbsent = m_proto.send(*this, data, length);
-
-		assert((m_action == Action::None && m_condition == Condition::None) ||
-		       (m_action == Action::Send && m_condition != Condition::None));
-
-		return nbsent;
+		return m_proto.send(*this, data, length);
 	}
 
 	/**