From 3f8f8174e92c18ee26bd52d77d2e88c2dbc2f901 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Tue, 2 Feb 1999 07:58:39 +0000 Subject: [PATCH] implement generic Netlib main loop for non-PC platforms git-svn-id: svn://10.0.0.236/trunk@19318 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsNetThread.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/network/module/nsNetThread.cpp b/mozilla/network/module/nsNetThread.cpp index ada99b7246f..491078e0dbf 100644 --- a/mozilla/network/module/nsNetThread.cpp +++ b/mozilla/network/module/nsNetThread.cpp @@ -311,7 +311,12 @@ void nsNetlibThread::NetlibMainLoop(void) #else void nsNetlibThread::NetlibMainLoop() { - PR_ASSERT(0); + while (mIsNetlibThreadRunning) { + if (NET_IsCallNetlibAllTheTimeSet(NULL, NULL)) + NET_ProcessNet(NULL, NET_EVERYTIME_TYPE); + else + NET_PollSockets(); + } } #endif /* ! XP_PC */