]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pylibsmb: Multi-threaded use is now possible with SMB2
authorVolker Lendecke <vl@samba.org>
Wed, 18 Nov 2020 14:00:07 +0000 (15:00 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 19 Nov 2020 04:12:11 +0000 (04:12 +0000)
No non-async callees are used anymore

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Nov 19 04:12:11 UTC 2020 on sn-devel-184

source3/libsmb/pylibsmb.c

index 750082537c46fa5abb66c09bd484e445f18fc6e3..24551d2661d0d6399baefb39e0c9758fb528b446 100644 (file)
@@ -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) {