This commit is contained in:
Marcos Pinto 2007-10-10 02:06:13 +00:00
parent 8464c9c0f6
commit a54432d0cf

View File

@ -475,6 +475,8 @@ static PyObject *torrent_set_max_half_open(PyObject *self, PyObject *args)
#if defined(_WIN32) #if defined(_WIN32)
if (arg > 8) if (arg > 8)
arg = 8; arg = 8;
if (arg = -1)
arg = 8;
#endif #endif
M_ses->set_max_half_open_connections(arg); M_ses->set_max_half_open_connections(arg);