From cc9e8fc530abe6e716e4627db4a27e7e7107532c Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Thu, 6 Mar 2014 11:17:27 -0800 Subject: [PATCH] No need to scan wifi until propertyChanged signal is received Change-Id: If34c502f8efd454ae4eae944a948d98759c2078b Signed-off-by: Jimmy Huang --- js/panel-connman.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/panel-connman.js b/js/panel-connman.js index b3e605c..3e27cdd 100644 --- a/js/panel-connman.js +++ b/js/panel-connman.js @@ -457,12 +457,6 @@ function connmanConstructTechnologyElement(technology) { /* success */ $('#toggle_connman_' + technology.prop.Type).slider('enable'); $('#toggle_connman_' + technology.prop.Type).slider('refresh'); - if (technology.prop.Type === 'wifi') { - setTimeout(function() { - /* add a 1 sec delay */ - connmanScan(technology.id); - }, 1000); - } console.log('Successfully enabled connman technology ' + technology.prop.Type); }, function(e) { /* error */ -- 2.7.4