Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Pausing FilteredStream, adding tracks, then resuming stops stream

$
0
0
Thanks for getting back Linvi.

I've made the suggested change and unfortunately no luck in resuming. There aren't any Exceptions being thrown, but the stream doesn't seem to be "connected" anymore. Even removing the adding of tracks, I'm simply trying stream.StopStream() followed by a stream.ResumeStream(). For some reason the stream won't start back up.

It's declared as a private variable in the class:
private Tweetinvi.Core.Interfaces.Streaminvi.IFilteredStream stream;

And is being started on a separate thread:
var t = new Thread( () => stream.StartStreamMatchingAnyCondition() );
t.Start();

Could accessing the stream from a different thread be causing the issue? Can you confirm that calling StopStream() and ResumeStream() multiple times functions as expected on your end?

Thanks helping me out

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>