Changeset 8ca560af823d…
Parent a9c7de3581b4…
by
Changes to one file · Browse files at 8ca560af823d Showing diff from parent a9c7de3581b4 Diff from another changeset...
@@ -210,6 +210,12 @@ self._get_config()
def _start_server(self):
+ def threadfunc(path, q, *args):
+ try:
+ hglib.hgcmd_toq(path, q, *args)
+ except util.Abort, e:
+ self._write(str(e))
+
# gather input data
try:
port = int(self._port_input.get_text())
@@ -228,7 +234,8 @@ else:
args.append('--name')
args.append(self.webname)
- thread = threading.Thread(target=hglib.hgcmd_toq, args=args)
+
+ thread = threading.Thread(target=threadfunc, args=args)
thread.start()
while not gservice or not hasattr(gservice, 'httpd'):
|
Loading...