Remove ne_sock_init and ne_sock_exit from owncloud module.

This change, together with a change in mirall calling the two functions
in folderman, should fix https://github.com/owncloud/mirall/issues/1115

This needs to be verified and maybe reverted!
This commit is contained in:
Klaas Freitag 2013-11-11 17:45:19 +01:00
parent 7f10b09a96
commit 9323658b01

View File

@ -497,12 +497,14 @@ static int dav_connect(const char *base_url) {
port = ne_uri_defaultport(protocol);
}
#if 0
rc = ne_sock_init();
DEBUG_WEBDAV("ne_sock_init: %d", rc );
if (rc < 0) {
rc = -1;
goto out;
}
#endif
dav_session.ctx = ne_session_create( protocol, host, port);
@ -1081,7 +1083,7 @@ static int owncloud_commit() {
dav_session.ctx = 0;
ne_sock_exit();
// ne_sock_exit();
_connected = 0; /* triggers dav_connect to go through the whole neon setup */
SAFE_FREE( dav_session.user );