duplicate issue fix 2 - subscriberdidconnecttostream function