mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
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…
x
Reference in New Issue
Block a user