Skip to content

Commit fb3c2a2

Browse files
authored
Merge pull request #53 from youngmonkeys/merge-master
Merge master
2 parents 80aa3a1 + 0a1257f commit fb3c2a2

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

concurrent/EzyEventLoopEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ public interface EzyEventLoopEvent
44
{
55
bool call();
66

7-
void onFinished() { }
7+
void onFinished();
88

9-
void onRemoved() { }
9+
void onRemoved();
1010
}
1111
}

concurrent/EzyEventLoopGroup.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ public void onFinished()
345345
{
346346
eventLoopByEvent.Remove(this);
347347
}
348+
349+
public void onRemoved()
350+
{
351+
// do nothing
352+
}
348353
}
349354

350355
public class ScheduledEvent : EzyEventLoopEvent

socket/EzyPingSchedule.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,17 @@ public bool call()
3434
return true;
3535
}
3636

37-
public virtual void start()
37+
public void onFinished()
38+
{
39+
// do nothing
40+
}
41+
42+
public void onRemoved()
43+
{
44+
// do nothing
45+
}
46+
47+
public virtual void start()
3848
{
3949
int periodMillis = pingManager.getPingPeriod();
4050
if (eventLoopGroup != null)

socket/EzySocketAdapter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ public void onFinished()
5353
setStopped(true);
5454
}
5555

56+
public void onRemoved()
57+
{
58+
// do nothing
59+
}
60+
5661
protected abstract String getThreadName();
5762

5863
protected virtual void run()

0 commit comments

Comments
 (0)