Skip to content

Commit

Permalink
submission: Move client_proxy_destroy() to submission-backend-relay.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 12, 2019
1 parent 4b54307 commit 646f093
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/submission/submission-backend-relay.c
Expand Up @@ -739,6 +739,12 @@ void client_proxy_create(struct client *client,
set->submission_relay_port, ssl_mode, &smtp_set);
}

void client_proxy_destroy(struct client *client)
{
if (client->proxy_conn != NULL)
smtp_client_connection_close(&client->proxy_conn);
}

static void client_proxy_ready_cb(const struct smtp_reply *reply,
void *context)
{
Expand Down
1 change: 1 addition & 0 deletions src/submission/submission-backend-relay.h
Expand Up @@ -20,6 +20,7 @@ struct submission_settings;

void client_proxy_create(struct client *client,
const struct submission_settings *set);
void client_proxy_destroy(struct client *client);
void client_proxy_start(struct client *client);

#endif
6 changes: 0 additions & 6 deletions src/submission/submission-client.c
Expand Up @@ -82,12 +82,6 @@ static const char *client_remote_id(struct client *client)
return addr;
}

static void client_proxy_destroy(struct client *client)
{
if (client->proxy_conn != NULL)
smtp_client_connection_close(&client->proxy_conn);
}

static void client_init_urlauth(struct client *client)
{
static const char *access_apps[] = { "submit+", NULL };
Expand Down

0 comments on commit 646f093

Please sign in to comment.