diff --git a/include/dap_events_python.h b/include/dap_events_python.h
index 3df4f8ffef3934428d0f75cc3b4fe777fc413f2f..c79f86dff81b5cec4933be34e3461b9c1da8fa66 100644
--- a/include/dap_events_python.h
+++ b/include/dap_events_python.h
@@ -19,7 +19,7 @@ void PyDapEventsObject_dealloc(PyDapEventsObject *eventsObject);
 PyObject *PyDapEventsObject_new(PyTypeObject *type_object, PyObject *args, PyObject *kwds);
 PyObject *dap_events_socket_remove_and_delete_py(PyDapEventsObject *self, PyObject *args);
 
-PyObject *dap_events_kill_socket_py(PyDapEventsObject *self, PyObject *args);
+PyObject *dap_events_socket_kill_socket_py(PyDapEventsObject *self, PyObject *args);
 
 PyObject *dap_events_start_py(PyDapEventsObject *self);
 PyObject *dap_events_wait_py(PyDapEventsObject *self);
@@ -27,7 +27,7 @@ PyObject *dap_events_wait_py(PyDapEventsObject *self);
 static PyMethodDef PyDapEventsObject_methods[] = {
     {"start", (PyCFunction)dap_events_start_py, METH_NOARGS, ""},
     {"wait", (PyCFunction)dap_events_wait_py, METH_NOARGS, ""},
-    {"killSocket", (PyCFunction)dap_events_kill_socket_py, METH_VARARGS, ""},
+    {"killSocket", (PyCFunction)dap_events_socket_kill_socket_py, METH_VARARGS, ""},
     {"removeAndDeleteSocket", (PyCFunction)dap_events_socket_remove_and_delete_py, METH_VARARGS, ""},
     {NULL, NULL, 0, NULL}  /* Sentinel */
 };
diff --git a/src/dap_events_python.c b/src/dap_events_python.c
index cb32c4e0396c31652143841d81cd8e90f102daa6..f922588e78ef2f61e0213ce3af1d5bdef8d57127 100644
--- a/src/dap_events_python.c
+++ b/src/dap_events_python.c
@@ -24,12 +24,12 @@ PyObject *dap_events_socket_remove_and_delete_py(PyDapEventsObject *self, PyObje
     return PyLong_FromLong(0);
 }
 
-PyObject *dap_events_kill_socket_py(PyDapEventsObject *self, PyObject *args){
+PyObject *dap_events_socket_kill_socket_py(PyDapEventsObject *self, PyObject *args){
     PyObject *in_obj;
     if (!PyArg_ParseTuple(args, "O", &in_obj)){
         return NULL;
     }
-    dap_events_kill_socket(((PyDapEventsSocketObject*)in_obj)->t_events_socket);
+    dap_events_socket_kill_socket(((PyDapEventsSocketObject*)in_obj)->t_events_socket);
     return PyLong_FromLong(0);
 }