state.__pc and gadgetAddress will never be equal and causes infinite loop in iOS12.
state.__pc and gadgetAddress will never be equal and causes infinite loop in iOS12.