Revision: 21856
          http://sourceforge.net/p/bibdesk/svn/21856
Author:   hofman
Date:     2018-02-09 17:02:53 +0000 (Fri, 09 Feb 2018)
Log Message:
-----------
avoid early return

Modified Paths:
--------------
    trunk/bibdesk/BDSKSharingServer.m

Modified: trunk/bibdesk/BDSKSharingServer.m
===================================================================
--- trunk/bibdesk/BDSKSharingServer.m   2018-02-09 16:02:37 UTC (rev 21855)
+++ trunk/bibdesk/BDSKSharingServer.m   2018-02-09 17:02:53 UTC (rev 21856)
@@ -719,15 +719,14 @@
         @catch (id exception) {
             NSLog(@"%@: ignoring exception \"%@\" raised while invalidating 
connection to client %p", [self class], exception, clientObject);
         }
-        return;
+    }else{
+        [clientObject setProtocolForProxy:@protocol(BDSKSharingClient)];
+        [remoteClients setObject:clientObject forKey:identifier];
+        [self setNumberOfConnections:[remoteClients count]];
+        dispatch_async(dispatch_get_main_queue(), ^{
+            [self notifyClientConnectionsChanged];
+        });
     }
-    
-    [clientObject setProtocolForProxy:@protocol(BDSKSharingClient)];
-    [remoteClients setObject:clientObject forKey:identifier];
-    [self setNumberOfConnections:[remoteClients count]];
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self notifyClientConnectionsChanged];
-    });
 }
 
 #pragma mark | BDSKSharingServer

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to