Skip to content

Commit 70a38c8

Browse files
committed
Fix
1 parent 1b12a7b commit 70a38c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mac/main.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,11 @@ int main(int argc, const char* argv[]) {
337337

338338
if (webServer) {
339339
Delegate* delegate = [[Delegate alloc] init];
340-
webServer.delegate = delegate;
341340
if (testDirectory) {
342341
fprintf(stdout, "<RUNNING TESTS FROM \"%s\">\n\n", [testDirectory UTF8String]);
343342
result = (int)[webServer runTestsWithOptions:@{GCDWebServerOption_Port: @8080} inDirectory:testDirectory];
344343
} else {
344+
webServer.delegate = delegate;
345345
if (recording) {
346346
fprintf(stdout, "<RECORDING ENABLED>\n");
347347
webServer.recordingEnabled = YES;

0 commit comments

Comments
 (0)