From 89d49576462af46cb112d5923d368167bdb7210f Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 23 Jan 2009 02:25:54 +0000 Subject: [PATCH] minor warning --- panda/src/net/connection.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panda/src/net/connection.cxx b/panda/src/net/connection.cxx index 1a49881003..1f785d876d 100644 --- a/panda/src/net/connection.cxx +++ b/panda/src/net/connection.cxx @@ -49,7 +49,10 @@ Connection(ConnectionManager *manager, Socket_IP *socket) : #if defined(HAVE_THREADS) && defined(SIMPLE_THREADS) // In the presence of SIMPLE_THREADS, we use non-blocking I/O. We // simulate blocking by yielding the thread. - _socket->SetNonBlocking(); + if (_socket->SetNonBlocking() != ALL_OK) { + net_cat.warning() + << "Unable to set non-blocking status on socket\n"; + } #endif }