From 3be0a028c67b961a336f20105e592cf91b0e41b8 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 20 Oct 2020 10:01:38 +0200 Subject: [PATCH] Added mutex to `deleteProperty` --- source/dnetd/dconnection.d | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 12f8de5..47e0eac 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -989,8 +989,14 @@ public class DConnection : Thread */ public void deleteProperty(string propertyName) { - /* TODO: Implement me */ + /* Lock the properties store */ + propertiesLock.lock(); + + /* Remove the property */ properties.remove(propertyName); + + /* Unlock the properties store */ + propertiesLock.unlock(); } public ConnectionType getConnectionType()