Revision: 28228
http://sourceforge.net/p/bibdesk/svn/28228
Author: hofman
Date: 2023-04-20 13:43:54 +0000 (Thu, 20 Apr 2023)
Log Message:
-----------
don't bother about timeout for synchronous textatsk, we don't use this anyway
Modified Paths:
--------------
trunk/bibdesk/BDSKTeXTask.m
Modified: trunk/bibdesk/BDSKTeXTask.m
===================================================================
--- trunk/bibdesk/BDSKTeXTask.m 2023-04-20 09:18:49 UTC (rev 28227)
+++ trunk/bibdesk/BDSKTeXTask.m 2023-04-20 13:43:54 UTC (rev 28228)
@@ -503,16 +503,7 @@
[[currentTask task] launch];
if (synchronous) {
- NSDate *start = [[NSDate alloc] init];
- while ([[currentTask task] isRunning]) {
- NSDate *next = [[NSDate alloc]
initWithTimeIntervalSinceNow:0.1];
- if ([next timeIntervalSinceDate:start] > 10.1)
- [[currentTask task] terminate];
- else
- [[NSRunLoop currentRunLoop]
runMode:NSDefaultRunLoopMode beforeDate:next];
- [next release];
- }
- [start release];
+ [[currentTask task] waitUntilExit];
success = success && [self invokePendingTasks];
} else if (currentTask) {
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(taskFinished:) name:NSTaskDidTerminateNotification
object:[currentTask task]];
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