So I've updated with the new coding that you have posted but I'm still running into problems. When I initially boot BGFminer it starts up fine and runs all day with no problems. The moment I add a pool to switch to, it gets hung up and flashes yellow. I'm literally stuck mining one pool. I've tried everything and cant figure it out. I'm operating on OSX 10.13.2.
https://ibb.co/fdqHPmhttps://ibb.co/jQQOx6