1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 17:53:39 +02:00

Added mutex to deleteProperty

This commit is contained in:
Tristan B. Kildaire 2020-10-20 10:01:38 +02:00
parent 1694634e3c
commit 3be0a028c6

View File

@ -989,8 +989,14 @@ public class DConnection : Thread
*/ */
public void deleteProperty(string propertyName) public void deleteProperty(string propertyName)
{ {
/* TODO: Implement me */ /* Lock the properties store */
propertiesLock.lock();
/* Remove the property */
properties.remove(propertyName); properties.remove(propertyName);
/* Unlock the properties store */
propertiesLock.unlock();
} }
public ConnectionType getConnectionType() public ConnectionType getConnectionType()