Article from https://kidshealth.org/parent/growth/feeding/breastfeed_often.html#
My baby wants to nurse for comfort. Is this OK?
If your baby seems to be getting enough milk, but continues to suck for an hour or more, he or she might be nursing for comfort rather than for nourishment. So, how do you know? Once your baby has fed vigorously, he or she may stay on your breast but show these signs of non-nutritive sucking (or pacifying):
* seems satisfied
* stops sucking and swallowing
* plays with your nipple
Early on, it's OK to let your baby nurse for comfort, but it can become problematic as your little one gets older because he or she may need to nurse to take a nap or go to bed at night. So, at some point in the second or third month, you should probably wean your baby off of sucking for comfort and make breastfeeding sessions about nourishment not pacifying.
Instead of nursing, you may want to offer your baby his or her thumb or hand to suck on.