elthran / RPG-Game

0 stars 1 forks source link

Page hangs when sending reset email (email still sends). Async Process isn't asynchronous. #331

Open klondikemarlen opened 6 years ago

klondikemarlen commented 6 years ago

Problem occurs when sending a reset email to reset password (only on the server). Print statements before and after async_process(rest_key_timelock, args=(database, username), kwargs={'timeout': 5}) seem to run asynchronously but the page hangs a long as the timeout I set here.

As far as I can tell my asynchronous process doesn't run asynchronously. Which is why the page hangs. Well it sort of does ... because I can print after it ... it just hangs on the page. Perhaps it is my implementation? Maybe I can do a redirect instead? Or just a page reload afterwards?