Added mg_wakeup_server()