Fix a bug in close()

This commit is contained in:
montag451 committed 2012-11-27 11:14:04 +01:00
1 parent ad08e5d1ef
commit 97f90b2997
1 file changed
+1 -1
+1 -1
View File
@@ -442,7 +442,7 @@ static PyObject* pytun_tuntap_close(PyObject* self)
if (tuntap->fd >= 0)
{
Py_BEGIN_ALLOW_THREADS
close(tuntap->fd);
close(tuntap->fd), tuntap->fd = -1;
Py_END_ALLOW_THREADS
}