python/ext/py-source.c: __exit__ to close once
authorPaul Brossier <piem@piem.org>
Mon, 27 Feb 2017 00:16:09 +0000 (01:16 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 27 Feb 2017 00:16:09 +0000 (01:16 +0100)
python/ext/py-source.c

index 35a16b1..82247fd 100644 (file)
@@ -280,7 +280,6 @@ static PyObject* Pyaubio_source_enter(Py_source *self, PyObject *unused) {
 
 static char Pyaubio_source_exit_doc[] = "";
 static PyObject* Pyaubio_source_exit(Py_source *self, PyObject *unused) {
-  Pyaubio_source_close(self, unused);
   return Pyaubio_source_close(self, unused);
 }