You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm monitoring a subreddit using:
subreddit.Posts.GetNew();
subreddit.Posts.NewUpdated += NewPostsUpdated;
subreddit.Posts.MonitorNew();
// Stop monitoring subreddit for new posts.
subreddit.Posts.MonitorNew();
subreddit.Posts.NewUpdated -= NewPostsUpdated;
I'm also monitoring scoring, e.g.:
post.MonitorPostScore(minScoreMonitoringThreshold: 1);
post.PostScoreUpdated += PostScoreUpdated;
All this works, but when the app. should close (all code in Main is complete), it just sits there. It won't stop the app. I tried disposing any current threads, but that didn't help. I also tried keeping a list of all posts that I added the event handler to and I removed that, still won't terminate. Suggestions? Thanks.
Activity