mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
Merge pull request #1028 from chrisbrickhouse/1014
Warn about possible deadlock if response_ends_trial is false and trial_duration is null
This commit is contained in:
commit
dadf120f17
@ -216,8 +216,9 @@ jsPsych.plugins["image-button-response"] = (function() {
|
||||
jsPsych.pluginAPI.setTimeout(function() {
|
||||
end_trial();
|
||||
}, trial.trial_duration);
|
||||
} else if (trial.response_ends_trial === false) {
|
||||
console.warn("The experiment may be stuck in a loop. Try setting a trial duration or set response_ends_trial to true.");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return plugin;
|
||||
|
@ -174,8 +174,9 @@ jsPsych.plugins["image-keyboard-response"] = (function() {
|
||||
jsPsych.pluginAPI.setTimeout(function() {
|
||||
end_trial();
|
||||
}, trial.trial_duration);
|
||||
} else if (trial.response_ends_trial === false) {
|
||||
console.warn("The experiment may be stuck in a loop. Try setting a trial duration or set response_ends_trial to true.");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user