(WHDH) – A 10-year-old boy in Brockton called 911 because he didn’t want to go to bed, but the phone call got the boy a late night visit from police.

“He’s like, ‘I’m going to call the cops on you,’” said Shamayne Rosario, the boy’s mother. “911 — he just pushes it into the phone.”

Danny called 911 just after 8 p.m. Wednesday. He never actually spoke with anyone — he hung up the phone after dialing 911. That was enough for police to not only call back, but send an officer to the home.

The dispatcher called back saying, “Hi, this is 911. Somebody just called from there?”

Rosario: “Yeah, it was my son, my 10-year-old son.”

Dispatcher: “Ok…”

Rosario: “No, everything is fine here…I told him to go to bed and he doesn’t want to go to bed. He’s like, ‘I’m going to call the cops on you.’ I said, ‘Go ahead.’”

Then a officer was sent to the family’s home.

“He was actually really scared when she found out that they were sending the police. He was actually really scared because he didn’t think that he was doing anything wrong,” said Veronica Flaherty-Spencer, a family friend.

“[The officer] was going to just leave without talking to my son, but I said to him, ‘Can you please speak with my son about the importance’ — that this can be a learning lesson instead of just being, okay the police came out and that was it. I said, ‘Make this a learning experience for him,’” said Rosario.

Abusing the 911 system can be a criminal offense. No charges were filed in this case.