fixed missing gMainThread
Merge pull request #42 from nils-ohlmeier/multistream

fixed missing gMainThread