M5Stack freze when out of wifi range....

  • I use UIflow and wrote my program. It will take some data to internet and show me every 1 minute. I have also reconnect code in my program for wifi but M5stack freze when it will out of wifi range.
    When i will come in back wifi range it will not connect or program not continue it will freze.
    And not continue to follow my code it will freze and do nothing.
    Is it normal or are there any solution for it?