Skip to content

Commit

Permalink
Prepare Job after setting block for version <=10
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed May 6, 2024
1 parent 8a4851c commit 5dd1be6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/MuTalk-Model/MTProgressBarLogger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ MTProgressBarLogger >> initializeMethodJob: size [
methodJob := Job new
min: 0;
max: size;
prepareForRunning;
yourself.

SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
methodJob block: [ ] ]
methodJob block: [ ] ].

methodJob prepareForRunning
]

{ #category : 'initialization' }
Expand All @@ -46,12 +47,13 @@ MTProgressBarLogger >> initializeMutantJob: size [
mutantJob := Job new
min: 0;
max: size;
prepareForRunning;
yourself.

SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
mutantJob block: [ ] ]
mutantJob block: [ ] ].

mutantJob prepareForRunning
]

{ #category : 'initialization' }
Expand All @@ -60,13 +62,14 @@ MTProgressBarLogger >> initializeTestJob: size [
testJob := Job new
min: 0;
max: size;
prepareForRunning;
yourself.

SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
testJob block: [ ].
].

testJob prepareForRunning
]

{ #category : 'logging' }
Expand Down

0 comments on commit 5dd1be6

Please sign in to comment.