[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore/network
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-08-01 2:38:41
Message-ID: 20040801023841.869589985 () office ! kde ! org
[Download RAW message or body]

CVS commit by thiago: 

Avoid calling the method to connect if we're already connected, or it
may cause an error to be caught.


  M +7 -1      kdatagramsocket.cpp   1.7


--- kdelibs/kdecore/network/kdatagramsocket.cpp  #1.6:1.7
@@ -113,5 +113,11 @@ bool KDatagramSocket::connect(const QStr
 
   // it has to be finished here
+  if (state() != Connected)
+    {
+      setState(Connecting);
+      emit stateChanged(Connecting);
   lookupFinishedPeer();
+    }
+
   return state() == Connected;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic