From 2b4c9a57ba522cd8dd01dc1f1d2761b66f97e4f2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 31 May 2008 02:24:26 +0000 Subject: more elegant way to remove not relevantmessages. --- sources/protocols/VSAbstractProtocol.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sources/protocols/VSAbstractProtocol.java') diff --git a/sources/protocols/VSAbstractProtocol.java b/sources/protocols/VSAbstractProtocol.java index 92c458a..ea3eec2 100644 --- a/sources/protocols/VSAbstractProtocol.java +++ b/sources/protocols/VSAbstractProtocol.java @@ -93,7 +93,7 @@ abstract public class VSAbstractProtocol extends VSAbstractEvent { /* (non-Javadoc) * @see events.VSAbstractEvent#onStart() */ - public final boolean onStart() { + public final void onStart() { if (hasOnServerStart) { if (isServer) { currentContextIsServer(true); @@ -105,8 +105,6 @@ abstract public class VSAbstractProtocol extends VSAbstractEvent { onClientStart(); } } - - return true; } /* (non-Javadoc) @@ -179,10 +177,10 @@ abstract public class VSAbstractProtocol extends VSAbstractEvent { return false; if (message.isServerMessage()) { - if (isServer) + if (!isClient) return false; } else { - if (isClient) + if (!isServer) return false; } -- cgit v1.2.3