Skip to content

Commit 9dc62ca

Browse files
Timer is no longer necessary here
1 parent d52f13f commit 9dc62ca

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

projects/client/Unit/src/unit/TestMessagePatternsSubscription.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,11 @@ protected class SubscriptionDrainer
112112
{
113113
protected Subscription m_subscription;
114114
protected bool m_ack;
115-
protected System.Timers.Timer m_timer;
116-
protected volatile bool shouldStop = false;
117115

118116
public SubscriptionDrainer(Subscription sub, bool ack)
119117
{
120118
m_subscription = sub;
121119
m_ack = ack;
122-
m_timer = new System.Timers.Timer(5000);
123-
m_timer.Elapsed += delegate (object o, ElapsedEventArgs args)
124-
{
125-
shouldStop = true;
126-
};
127-
m_timer.Enabled = true;
128120
}
129121

130122
public void Drain()

0 commit comments

Comments
 (0)