_WifiDirectGroupClientImpl::~_WifiDirectGroupClientImpl(void)
{
- result r = E_SUCCESS;
-
CleanUpServerSocket();
- delete __pLocalIpAddress;
-
if (__pNetConnection != null)
{
- r = __pNetConnection->RemoveNetConnectionListener(*this);
+ result r = __pNetConnection->RemoveNetConnectionListener(*this);
SysTryLog(NID_NET_WIFI, r == E_SUCCESS, "[%s] Removing a NetConnectionListener has failed.", GetErrorMessage(r));
- r = __pNetConnection->Close();
- SysTryLog(NID_NET_WIFI, r == E_SUCCESS, "[%s] Closing NetConncetion has failed.", GetErrorMessage(r));
-
delete __pNetConnection;
}
+
+ delete __pLocalIpAddress;
}
result
_WifiDirectGroupOwnerImpl::~_WifiDirectGroupOwnerImpl(void)
{
- result r = E_SUCCESS;
-
CleanUpServerSocket();
if (__pNetConnection != null)
{
- r = __pNetConnection->RemoveNetConnectionListener(*this);
-
- if (IsFailed(r))
- {
- SysLog(NID_NET_WIFI, "Removing NetConnectionListener has failed. [result:%s]", GetErrorMessage(r));
- }
-
- r = __pNetConnection->Close();
-
- if (IsFailed(r))
- {
- SysLog(NID_NET_WIFI, "Closing NetConncetion has failed. [result:%s]", GetErrorMessage(r));
- }
+ result r = __pNetConnection->RemoveNetConnectionListener(*this);
+ SysTryLog(NID_NET_WIFI, r == E_SUCCESS, "[%s] Removing a NetConnectionListener has failed.", GetErrorMessage(r));
delete __pNetConnection;
- __pNetConnection = null;
}
delete __pLocalIpAddress;
}