Corrected race condition in persistentconnection.