Mayor de Blasio canceled plans to visit Albany on Monday, but reached out to state Senate Majority Leader John Flanagan in a phone call to try and end a standoff over mayoral control.

The legislature is scheduled to take its summer recess in less than two weeks.

“Leaving Albany without passing an extension of mayoral control is the equivalent of turning your back on 1.1 million school children,” said de Blasio spokeswoman Freddi Goldstein.

“Mayoral control is the only proven governance system. Ending it would roll out the red carpet for corruption and chaos in our school system.”

Goldstein wouldn’t say why de Blasio changed his mind at the last minute about visiting Albany, first putting it on his public schedule Sunday night and then removing it.

But when asked later in an interview on NY1 why he didn’t go upstate, the mayor said: “I’ve had a series of conversations with Gov. Cuomo, with Speaker Heastie and with the leader of the IDC Jeff Klein. And those have been phone calls over the last few days, including today. In light of that I decided it made sense to stay here and deal with other matters and keep going by phone.”

The GOP-controlled Senate warned it’s prepared to leave without extending the mayor’s authority over New York City schools if the Democratic-controlled Assembly refuses to negotiate on its priorities, which include more charter schools.