mirror of https://git.kore.io/kore.git
move l->tls check upwards
This commit is contained in:
parent
46127459d9
commit
be70118bf2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue