Revision: 29716
http://sourceforge.net/p/bibdesk/svn/29716
Author: hofman
Date: 2025-10-12 16:44:07 +0000 (Sun, 12 Oct 2025)
Log Message:
-----------
don't reset server reference as it is not thread safe, make sure wwe end by
setting number to 0
Modified Paths:
--------------
trunk/bibdesk/BDSKSharingServer.h
trunk/bibdesk/BDSKSharingServer.m
Modified: trunk/bibdesk/BDSKSharingServer.h
===================================================================
--- trunk/bibdesk/BDSKSharingServer.h 2025-10-12 16:36:29 UTC (rev 29715)
+++ trunk/bibdesk/BDSKSharingServer.h 2025-10-12 16:44:07 UTC (rev 29716)
@@ -97,7 +97,7 @@
// actual name used for sharing, unique name based on +sharingName
@property (nonatomic, nullable, readonly) NSString *sharingName;
@property (nonatomic, readonly) BDSKSharingStatus status;
-
+// can be updated on another thread
@property (readonly) NSUInteger numberOfConnections;
- (void)enableSharing;
Modified: trunk/bibdesk/BDSKSharingServer.m
===================================================================
--- trunk/bibdesk/BDSKSharingServer.m 2025-10-12 16:36:29 UTC (rev 29715)
+++ trunk/bibdesk/BDSKSharingServer.m 2025-10-12 16:44:07 UTC (rev 29716)
@@ -588,8 +588,6 @@
- (void)stop {
[sharingServer setNumberOfConnections:0];
- // make sure we don't message our sharingServer
- sharingServer = nil;
[super stop];
}
@@ -657,6 +655,7 @@
[connectedClients makeObjectsPerformSelector:@selector(invalidate)];
[connectedClients removeAllObjects];
[registeredClients removeAllObjects];
+ [sharingServer setNumberOfConnections:0];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
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