diff options
author | irungentoo <irungentoo@gmail.com> | 2015-05-30 21:06:38 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-05-30 21:06:38 -0400 |
commit | 240561b5574b0904543df20ea830f84ecbc13b0e (patch) | |
tree | 6c45acb24e89088efac1a9ba1de4952486992263 /toxcore | |
parent | 5ea703c844b12e86702c35b53b0b798fe5f86634 (diff) |
Return port error if tcp server failed to init.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 3081a226..d3b021aa 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -214,6 +214,8 @@ Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error) | |||
214 | 214 | ||
215 | if (m_error == MESSENGER_ERROR_PORT) { | 215 | if (m_error == MESSENGER_ERROR_PORT) { |
216 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_PORT_ALLOC); | 216 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_PORT_ALLOC); |
217 | } else if (m_error == MESSENGER_ERROR_TCP_SERVER) { | ||
218 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_PORT_ALLOC); | ||
217 | } else { | 219 | } else { |
218 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_MALLOC); | 220 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_MALLOC); |
219 | } | 221 | } |