From: Volker Lendecke Date: Wed, 18 Nov 2020 14:00:07 +0000 (+0100) Subject: pylibsmb: Multi-threaded use is now possible with SMB2 X-Git-Tag: samba-4.14.0rc1~589 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bc77a0f86f32a7fc46cdcdce806e8f130069535;p=thirdparty%2Fsamba.git pylibsmb: Multi-threaded use is now possible with SMB2 No non-async callees are used anymore Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Nov 19 04:12:11 UTC 2020 on sn-devel-184 --- diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index 750082537c4..24551d2661d 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -502,12 +502,6 @@ static int py_cli_state_init(struct py_cli_state *self, PyObject *args, "No PTHREAD support available"); return -1; #endif - if (!force_smb1) { - PyErr_SetString(PyExc_RuntimeError, - "multi_threaded is only possible on " - "SMB1 connections"); - return -1; - } } else { ret = py_cli_state_setup_ev(self); if (!ret) {