Revision: 28238
http://sourceforge.net/p/bibdesk/svn/28238
Author: hofman
Date: 2023-04-21 14:52:34 +0000 (Fri, 21 Apr 2023)
Log Message:
-----------
terminate textask when we don't keep it around
Modified Paths:
--------------
trunk/bibdesk/BDSKItemPasteboardHelper.m
Modified: trunk/bibdesk/BDSKItemPasteboardHelper.m
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.m 2023-04-21 13:46:16 UTC (rev
28237)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.m 2023-04-21 14:52:34 UTC (rev
28238)
@@ -297,7 +297,10 @@
} else {
BDSKTeXTask *currentTask = [texTasks objectForKey:pbName];
if (currentTask) {
- [currentTask cancel];
+ if (currentTask == texTask)
+ [currentTask cancel];
+ else
+ [currentTask terminate];
[texTasks removeObjectForKey:pbName];
}
[dict removeObjectForKey:TEXTASKRESULT_KEY];
@@ -315,7 +318,10 @@
NSString *pbName = [pboard name];
BDSKTeXTask *currentTask = [texTasks objectForKey:pbName];
if (currentTask) {
- [currentTask cancel];
+ if (currentTask == texTask)
+ [currentTask cancel];
+ else
+ [currentTask terminate];
[texTasks removeObjectForKey:pbName];
}
[promisedPboardTypes removeObjectForKey:pbName];
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