diff options
Diffstat (limited to 'toxcore/tox.c')
-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 | } |