Modified configurePingInterval to check if it is already set

#2739