From 36f74586cc61f5899c16b6f84a04be37688cc719 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 18 May 2008 23:20:08 +0000 Subject: TaskManager bugfixes. --- sources/events/implementations/ProtocolEvent.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sources/events/implementations/ProtocolEvent.java') diff --git a/sources/events/implementations/ProtocolEvent.java b/sources/events/implementations/ProtocolEvent.java index d753978..6b21d8c 100644 --- a/sources/events/implementations/ProtocolEvent.java +++ b/sources/events/implementations/ProtocolEvent.java @@ -34,18 +34,7 @@ public class ProtocolEvent extends VSEvent { } public void onStart() { - //String type = isClientProtocol ? " Client!" : " Server!"; - //process.setBoolean(protocolClassname + type, isProtocolActivation); - - VSProtocol protocol; - - if (!process.objectExists(protocolClassname)) { - protocol = (VSProtocol) VSRegisteredEvents.createEventInstanceByClassname(protocolClassname, process); - process.setObject(protocolClassname, protocol); - - } else { - protocol = (VSProtocol) process.getObject(protocolClassname); - } + VSProtocol protocol = process.getProtocolObject(protocolClassname); if (isClientProtocol) protocol.isClient(isProtocolActivation); -- cgit v1.2.3