Skip to content
Snippets Groups Projects
Commit abf66aa7 authored by Matt Johnston's avatar Matt Johnston
Browse files

Don't try to remove non-eixtant listeners

--HG--
extra : convert_revision : 87058f74626cd6795ecd495cc22779618c70eaa8
parent 1e944250
No related merge requests found
......@@ -171,8 +171,12 @@ void x11cleanup(struct ChanSess *chansess) {
m_free(chansess->x11authprot);
m_free(chansess->x11authcookie);
remove_listener(chansess->x11listener);
chansess->x11listener = NULL;
TRACE(("chansess %s", chansess));
if (chansess->x11listener != NULL) {
remove_listener(chansess->x11listener);
chansess->x11listener = NULL;
}
}
static const struct ChanType chan_x11 = {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment