Commit 65536ada authored by 's avatar
Browse files

Fixed spinlock bug in mapi_start_offline_device()

git-svn-id: file:///home/svn/mapi/trunk@813 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent ac750912
......@@ -911,13 +911,13 @@ int mapi_start_offline_device(const char *dev)
}
pthread_spin_lock(&mapi_lock);
if ((get_numflows() == 0) && (get_totalflows() > 0) && minit) { // socket has been closed, re-create it
pthread_spin_lock(&mapi_lock);
//pthread_spin_lock(&mapi_lock);
if (mapiipc_client_init()<0) {
pthread_spin_unlock(&mapi_lock);
local_err = MCOM_INIT_SOCKET_ERROR;
return -1;
}
pthread_spin_unlock(&mapi_lock);
//pthread_spin_unlock(&mapi_lock);
}
pthread_spin_unlock(&mapi_lock);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment