[Fix] Remove restriction from tree when user initiated remove operation 12/168312/2
authorNishant Chaprana <n.chaprana@samsung.com>
Thu, 25 Jan 2018 12:53:41 +0000 (18:23 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Sat, 27 Jan 2018 07:43:28 +0000 (13:13 +0530)
Change-Id: I96cff6077c12d0484643e63fc7da772285579e7f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/stc-manager.spec
src/monitor/stc-monitor.c

index 0147c03..9e2c1af 100644 (file)
@@ -1,6 +1,6 @@
 Name:       stc-manager
 Summary:    STC(Smart Traffic Control) manager
-Version:    0.0.45
+Version:    0.0.46
 Release:    0
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index d9b1b7e..c8f7b7e 100755 (executable)
@@ -1246,10 +1246,6 @@ static gboolean __remove_restriction(gpointer key, gpointer value,
        stc_rstn_key_s *rstn_key = (stc_rstn_key_s *)key;
        stc_rstn_value_s *rstn_value = (stc_rstn_value_s *)value;
 
-       /* rstn rule is already removed */
-       if (rstn_value->rst_state == STC_RESTRICTION_REMOVED)
-               return FALSE;
-
        __process_restriction(RST_UNSET, rstn_key, rstn_value, data);
        __print_rstn(rstn_key, rstn_value);
        return FALSE;