summaryrefslogtreecommitdiffstats
path: root/third_party/pyftpdlib/chromium.patch
blob: 43a74c2b08502e059daf3c2f2c85902b861279a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- pyftpdlib/ftpserver.py
+++ pyftpdlib/ftpserver.py
@@ -2546,14 +2546,12 @@ class FTPHandler(asynchat.async_chat):
                 self.fs.root = self.authorizer.get_home_dir(self.username)
                 self.log("User %s logged in." %self.username)
             else:
-                CallLater(5, auth_failed)
+                auth_failed()
                 self.username = ""
-                self.sleeping = True
         # wrong username
         else:
             if self.username.lower() == 'anonymous':
-                CallLater(5, auth_failed, "Anonymous access not allowed.")
+                auth_failed("Anonymous access not allowed.")
             else:
-                CallLater(5, auth_failed)
+                auth_failed()
             self.username = ""
-            self.sleeping = True

     def ftp_REIN(self, line):
         """Reinitialize user's current session."""