Revision: 29720
http://sourceforge.net/p/bibdesk/svn/29720
Author: hofman
Date: 2025-10-13 15:34:30 +0000 (Mon, 13 Oct 2025)
Log Message:
-----------
don't message server after stopping
Modified Paths:
--------------
trunk/bibdesk/BDSKSharingServer.m
Modified: trunk/bibdesk/BDSKSharingServer.m
===================================================================
--- trunk/bibdesk/BDSKSharingServer.m 2025-10-13 09:15:00 UTC (rev 29719)
+++ trunk/bibdesk/BDSKSharingServer.m 2025-10-13 15:34:30 UTC (rev 29720)
@@ -652,7 +652,6 @@
[connectedClients makeObjectsPerformSelector:@selector(invalidate)];
[connectedClients removeAllObjects];
[registeredClients removeAllObjects];
- [sharingServer setNumberOfConnections:0];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@@ -738,7 +737,8 @@
[clientObject setProtocolForProxy:@protocol(BDSKSharingClient)];
[client setProxy:clientObject];
[registeredClients setObject:client forKey:identifier];
- [sharingServer setNumberOfConnections:[registeredClients count]];
+ if ([self shouldKeepRunning])
+ [sharingServer setNumberOfConnections:[registeredClients count]];
}
}
@@ -763,7 +763,8 @@
[connectedClients removeObject:client];
[[client connection] invalidate];
}
- [sharingServer setNumberOfConnections:[registeredClients count]];
+ if ([self shouldKeepRunning])
+ [sharingServer setNumberOfConnections:[registeredClients count]];
}
- (void)notifyClientsOfChange;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit