From 4e07ceeb21dae4b6b8d5eaf7421228f735f14bda Mon Sep 17 00:00:00 2001
From: Pixel <pixel@nobis-crew.org>
Date: Tue, 18 Oct 2011 11:33:50 -0700
Subject: Adding a few more asserts, and using the proper function calls (ntohs
 instead of htons - which should be fundamentally the same, but, *shrug*)

---
 includes/Socket.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'includes')

diff --git a/includes/Socket.h b/includes/Socket.h
index b762d9b..3b29f49 100644
--- a/includes/Socket.h
+++ b/includes/Socket.h
@@ -58,8 +58,9 @@ template<class Worker>
 class Listener : public Task {
   public:
       Listener(int port, const char * local = NULL) : m_stop(false) {
-          m_listener.setLocal(local, port);
-          bool r = m_listener.listen();
+          bool r = m_listener.setLocal(local, port);
+          Assert(r);
+          r = m_listener.listen();
           Assert(r);
           m_name = String(ClassName(this).c_str()) + " - " + m_listener.getName();
           Printer::elog(E_SOCKET, "Created a listener task at %p", this);
-- 
cgit v1.2.3