The first couple times I load up the page everything works.
After a few the AP mode will stop working. It stops broadcasting, and calls to begin return false.
Am I running into some sort of buffer I need to flush? Could it be that I am changing global vars in the handler function?