summaryrefslogtreecommitdiffstats
path: root/tupkg/server
diff options
context:
space:
mode:
authorjchu <jchu>2004-12-13 04:45:40 +0100
committerjchu <jchu>2004-12-13 04:45:40 +0100
commit592565d863fda7eaafd9ec69d6086c2ec0eeac07 (patch)
treee32a4694e7e6d3bc68c3e9cb69165d1cb9aad6be /tupkg/server
parent18769e5b020e913a1ed33129296632e633ea9ea6 (diff)
downloadaur-592565d863fda7eaafd9ec69d6086c2ec0eeac07.tar.gz
aur-592565d863fda7eaafd9ec69d6086c2ec0eeac07.tar.xz
made it a nicer error message
Diffstat (limited to 'tupkg/server')
-rwxr-xr-xtupkg/server/tupkgs16
1 files changed, 11 insertions, 5 deletions
diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs
index f3f31ea6..5eac499a 100755
--- a/tupkg/server/tupkgs
+++ b/tupkg/server/tupkgs
@@ -164,11 +164,17 @@ class ClientSocket(threading.Thread):
print self.readMsg()
def run(self):
- if not self.auth():
- self.close()
- return
- self.readFileMeta()
- self.readFiles()
+ try:
+ if not self.auth():
+ self.close()
+ return
+ self.readFileMeta()
+ self.readFiles()
+ except RuntimeError, err:
+ if err.__str__() == "socket connection broken":
+ print "Client disconnected, cleaning up"
+ self.close()
+ return
class ServerSocket(threading.Thread):
def __init__(self, db, port, maxqueue, **other):