Fix concider the case of local file, there is no event
"netstream.connect.success' comes