move l->tls check upwards

This commit is contained in:
Joris Vink 2019-09-27 12:33:48 +02:00
parent 46127459d9
commit be70118bf2
1 changed files with 1 additions and 2 deletions

View File

@ -1377,6 +1377,7 @@ python_kore_listen(PyObject *self, PyObject *args, PyObject *kwargs)
}
l = kore_listener_create(name);
python_bool_from_dict(kwargs, "tls", &l->tls);
if (ip != NULL) {
if ((port = python_string_from_dict(kwargs, "port")) == NULL) {
@ -1399,8 +1400,6 @@ python_kore_listen(PyObject *self, PyObject *args, PyObject *kwargs)
}
}
python_bool_from_dict(kwargs, "tls", &l->tls);
Py_RETURN_NONE;
}