Revert BT enable / disable calling method to async call
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-rfcomm-server.c
old mode 100644 (file)
new mode 100755 (executable)
index 1710da6..dd967bc
@@ -1,11 +1,5 @@
 /*
- * Bluetooth-frwk
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
- *              Girishashok Joshi <girish.joshi@samsung.com>
- *              Chanyeol Park <chanyeol.park@samsung.com>
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,8 +15,6 @@
  *
  */
 
-//#include <dbus/dbus-glib.h>
-//#include <dbus/dbus.h>
 #include <glib.h>
 #include <dlog.h>
 #include <string.h>
@@ -146,11 +138,10 @@ int _bt_rfcomm_server_check_existence(gboolean *existence)
 {
        BT_CHECK_PARAMETER(existence, return);
 
-       if (server_list && g_slist_length(server_list) > 0) {
+       if (server_list && g_slist_length(server_list) > 0)
                *existence = TRUE;
-       } else {
+       else
                *existence = FALSE;
-       }
 
        return BLUETOOTH_ERROR_NONE;
 }
@@ -168,9 +159,9 @@ int _bt_rfcomm_server_check_termination(char *name)
                if (server_info == NULL)
                        continue;
 
-               if (g_strcmp0(server_info->sender, name) == 0) {
+               if (g_strcmp0(server_info->sender, name) == 0)
                        _bt_rfcomm_remove_socket(server_info->control_fd);
-               }
+
        }
 
        return BLUETOOTH_ERROR_NONE;