summaryrefslogtreecommitdiff
path: root/x11/kdelibs4/files/patch-kdecore__network__k3socketdevice.cpp
blob: 92c578bba754639d1d4cf47c1c863f205282cc43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- kdecore/network/k3socketdevice.cpp.orig	2009-03-27 10:47:33.000000000 -0400
+++ kdecore/network/k3socketdevice.cpp	2009-09-26 16:51:55.000000000 -0400
@@ -352,9 +352,13 @@
   if (kde_connect(m_sockfd, address.address(), address.length()) == -1)
     {
       if (errno == EISCONN)
-	return true;		// we're already connected
+       {
+         KActiveSocketBase::open(Unbuffered | mode);
+         return true;          // we're already connected
+       }
       else if (errno == EALREADY || errno == EINPROGRESS)
 	{
+	  KActiveSocketBase::open(Unbuffered | mode);
 	  setError(InProgress);
 	  return true;
 	}