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

List:       kde-commits
Subject:    playground/network/akiirc/irc
From:       Keith Allan Rusler <xzekecomax () gmail ! com>
Date:       2009-06-18 17:29:03
Message-ID: 1245346143.785730.11785.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 983645 by karusler:

If there is no network addreses in link don't perform a connection attempt.

 M  +4 -0      socket.cpp  


--- trunk/playground/network/akiirc/irc/socket.cpp #983644:983645
@@ -136,6 +136,10 @@
 void
 Socket::connectToHost()
 {
+    if (addressList().isEmpty()) {
+        return;
+    }
+
     if (retryAttemptCount() == -1 || d->retryAttemptsCount <= retryAttemptCount()) {
         if (d->addressListIndex <= addressList().count()) {
             if (addressList()[d->addressListIndex].contains(QChar('/'))) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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