fix captcha spam

This commit is contained in:
HF 2021-01-29 02:14:17 +01:00
parent 4a0e443a13
commit 087319be96

View File

@ -170,7 +170,6 @@ export function receivePixelReturn(
) {
clearTimeout(pixelTimeout);
try {
/*
* the terms coolDown is used in a different meaning here
* coolDown is the delta seconds of the placed pixel
@ -255,6 +254,7 @@ export function receivePixelReturn(
errorTitle = 'Weird';
msg = 'Couldn\'t set Pixel';
}
if (msg) {
store.dispatch(pixelFailure());
store.dispatch(sweetAlert(
@ -264,10 +264,9 @@ export function receivePixelReturn(
'OK',
));
}
} finally {
store.dispatch(setPlaceAllowed(true));
/* start next request if queue isn't empty */
requestFromQueue(store);
}
}