Add call to network_init before setting up http connection

This commit is contained in:
twinaphex 2015-06-28 19:10:36 +02:00
parent d9c150fc46
commit 8bf46e4424
2 changed files with 8 additions and 1 deletions

View File

@ -1406,7 +1406,10 @@ static int action_ok_disk_cycle_tray_status(const char *path,
static int action_ok_close_content(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
return generic_action_ok_command(EVENT_CMD_UNLOAD_CORE);
menu_list_t *menu_list = menu_list_get_ptr();
int ret = generic_action_ok_command(EVENT_CMD_UNLOAD_CORE);
menu_list_flush_stack(menu_list, NULL, MENU_SETTINGS);
return ret;
}
static int action_ok_quit(const char *path,

View File

@ -20,6 +20,7 @@
#include <compat/strl.h>
#include <file/file_path.h>
#include <rhash.h>
#include <net/net_compat.h>
#include "../file_ops.h"
#include "../general.h"
@ -235,6 +236,9 @@ static int cb_http_conn_default(void *data_, size_t len)
if (!http)
return -1;
if (!network_init())
return -1;
http->handle = net_http_new(http->connection.handle);
if (!http->handle)