diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-18 23:20:08 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-18 23:20:08 +0000 |
| commit | 36f74586cc61f5899c16b6f84a04be37688cc719 (patch) | |
| tree | 3ce0df2cf2dc18b2bdd27b546305c4a73598c457 /sources/events/implementations/ProtocolEvent.java | |
| parent | 34b16d2ffc7b40df933ba85ddb8e414121116ca5 (diff) | |
TaskManager bugfixes.
Diffstat (limited to 'sources/events/implementations/ProtocolEvent.java')
| -rw-r--r-- | sources/events/implementations/ProtocolEvent.java | 13 |
1 files changed, 1 insertions, 12 deletions
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); |
