aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LispREPL.m17
1 files changed, 9 insertions, 8 deletions
diff --git a/LispREPL.m b/LispREPL.m
index 87e4f4f..90bd08b 100644
--- a/LispREPL.m
+++ b/LispREPL.m
@@ -267,17 +267,18 @@ sig_child(int signo)
- (void)dispatchREPLResults: (NSNotification *)resultsNotification
{
[theDispatcherLock lock];
+ if (theLispIsLoaded == NO) {
+ NSNotificationCenter *defaultCenter;
+ theLispIsLoaded = YES;
+
+ defaultCenter = [NSNotificationCenter defaultCenter];
+ [defaultCenter postNotificationName: LispFinishedLoadingNotification
+ object: self];
+ }
+
while ([theREPLResults count] > 0) {
id result;
- if (theLispIsLoaded == NO) {
- NSNotificationCenter *defaultCenter;
- theLispIsLoaded = YES;
-
- defaultCenter = [NSNotificationCenter defaultCenter];
- [defaultCenter postNotificationName: LispFinishedLoadingNotification
- object: self];
- }
result = [theREPLResults objectAtIndex: 0];
if ([result isKindOfClass: [NSArray class]]) {
NSString *command;