summaryrefslogtreecommitdiff
path: root/sources/events/implementations/ProtocolEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/events/implementations/ProtocolEvent.java')
-rw-r--r--sources/events/implementations/ProtocolEvent.java13
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);