We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b58887a commit 41e6e93Copy full SHA for 41e6e93
src/RxTelegram.Bot/Api/UpdateDistributor.cs
@@ -118,11 +118,10 @@ public void Set(IObservable<Update> tracker)
118
{
119
// Configure the current tracker to listen for all types of updates
120
// before switching to a new one
121
- var current = _tracker.Current;
122
- (current as ITrackerSetup)?.Set(null);
123
- UpdateTrackerTypes();
124
-
+ (_tracker.Current as ITrackerSetup)?.Set(null);
+
125
_tracker.OnNext(tracker);
+ UpdateTrackerTypes();
126
}
127
private void UpdateTrackerTypes()
128
0 commit comments