White Sox reliever Danny Farquhar was released Monday from Rush University Medical Center after progressing in his recovery from a brain hemorrhage that left him fighting for his life, the team announced. He’s at home resting with his family and won’t return to competitive baseball this season.

Farquhar suffered a ruptured brain aneurysm during a home game April 20 against the Astros.

Demetrius Lopes, Farquhar’s neurologist, was optimistic that he would make his way back to the mound eventually. Lopes said he won’t medically clear the right-hander this season to allow Farquhar to fully recover.

“Farquhar and his family have appreciated the many cards, tweets, texts and well-wishes they have received from friends and fans over the past weeks,” the team said in a statement. “The White Sox organization continues to wish Danny a speedy and full recovery.”

Farquhar collapsed in the dugout at Guaranteed Rate Field after pitching two-thirds of an inning against Houston. Team medical personnel and on-site emergency medical technicians immediately attended to him, and Farquhar was taken to Rush for further treatment and testing. He spent some time in the intensive care unit after he suffered the ruptured aneurysm, which caused bleeding in his brain.

Farquhar, 31, is in his seventh major-league season and second with the Sox. The Sox signed him last season, four days after the Rays released him in July. The Blue Jays originally selected Farquhar in the 10th round in 2008. He only pitched three games for them, all in 2011.