Removed duplicated "newConnection" event logic