Revision: 21835
http://sourceforge.net/p/bibdesk/svn/21835
Author: hofman
Date: 2018-02-06 22:42:07 +0000 (Tue, 06 Feb 2018)
Log Message:
-----------
no need to keep sharing client version, we only check it in registration
Modified Paths:
--------------
trunk/bibdesk/BDSKSharingServer.m
Modified: trunk/bibdesk/BDSKSharingServer.m
===================================================================
--- trunk/bibdesk/BDSKSharingServer.m 2018-02-06 07:30:35 UTC (rev 21834)
+++ trunk/bibdesk/BDSKSharingServer.m 2018-02-06 22:42:07 UTC (rev 21835)
@@ -632,10 +632,7 @@
return;
// don't use [remoteClients objectEnumerator], because the remoteClients
may change during enumeration
- id proxyObject;
-
- for (NSDictionary *dict in [remoteClients allValues]) {
- proxyObject = [dict objectForKey:@"object"];
+ for (id proxyObject in [remoteClients allValues]) {
@try {
[proxyObject invalidate];
}
@@ -704,8 +701,7 @@
return;
[clientObject setProtocolForProxy:@protocol(BDSKSharingClient)];
- NSDictionary *clientInfo = [NSDictionary
dictionaryWithObjectsAndKeys:clientObject, @"object", version, @"version", nil];
- [remoteClients setObject:clientInfo forKey:identifier];
+ [remoteClients setObject:clientObject forKey:identifier];
[self setNumberOfConnections:[remoteClients count]];
dispatch_async(dispatch_get_main_queue(), ^{
[self notifyClientConnectionsChanged];
@@ -717,7 +713,7 @@
- (oneway void)removeClientForIdentifier:(bycopy NSString *)identifier;
{
NSParameterAssert(identifier != nil);
- id proxyObject = [[[remoteClients objectForKey:identifier]
objectForKey:@"object"] retain];
+ id proxyObject = [[remoteClients objectForKey:identifier] retain];
[remoteClients removeObjectForKey:identifier];
[self setNumberOfConnections:[remoteClients count]];
[[proxyObject connectionForProxy] invalidate];
@@ -732,7 +728,7 @@
// here is where we notify other hosts that something changed
for (NSString *key in [remoteClients allKeys]) {
- id proxyObject = [[remoteClients objectForKey:key]
objectForKey:@"object"];
+ id proxyObject = [remoteClients objectForKey:key];
@try {
[proxyObject setNeedsUpdate:YES];
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit