From 5db3bbee4ad2cd2f9ab74a624667f4a530664dae Mon Sep 17 00:00:00 2001 From: Esiur Project Date: Tue, 6 Sep 2022 23:30:06 +0300 Subject: [PATCH] TemplateType.Wrapper Removed --- lib/src/Net/IIP/DistributedConnection.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Net/IIP/DistributedConnection.dart b/lib/src/Net/IIP/DistributedConnection.dart index 2529f50..9b52979 100644 --- a/lib/src/Net/IIP/DistributedConnection.dart +++ b/lib/src/Net/IIP/DistributedConnection.dart @@ -2782,8 +2782,8 @@ class DistributedConnection extends NetworkConnection with IStore { if (resource == null) { template = - Warehouse.getTemplateByClassId(classId, TemplateType.Wrapper); - if (template?.definedType != null) { + Warehouse.getTemplateByClassId(classId, TemplateType.Resource); + if (template?.definedType != null && (template?.isWrapper ?? false)) { dr = Warehouse.createInstance(template?.definedType as Type); dr.internal_init(this, id, rt[1] as int, rt[2] as String); } else {