If Connman does that then this code would not be necessary. I didn't wait that long. I will remove this code and test that.