fix bug that thread leak
add max retry time to retry rtmp connect to source