a bad oil pressure switch connector cause engine to slow idle when stopping on 1990 Dodge D150

also i notice oil seeping through top of switch

Asked by for the 1990 Dodge D150
I wouldn't suspect that oil pressure sending connector to be able to do anything else but read pressure.. however sounds like you do need a new sending unit.... there cheap at most part stores....