[mnet-devel] patch: start only 1 mojohttpd
Arno Waschk
hamamatsu at gmx.de
Tue Feb 17 01:39:58 GMT 2004
committed.
Arno
On 16 Feb 2004 20:26:49 -0500, Zooko O'Whielacronx <zooko at zooko.com> wrote:
>
> This has been discussed on IRC. This is the minimal patch. I also have
> a
> refactoring patch, if you're interested in code-cleanup for v0.6.3.
> (I'm not --
> I'm switching to v0.7 after this.) --Z
>
> --- client/localhost/Broker.py 14 Dec 2003 19:51:48 -0000 1.86
> +++ client/localhost/Broker.py 17 Feb 2004 01:20:56 -0000
> @@ -914,6 +914,8 @@ class Broker:
> self.__mojohttpd_thread.start()
>
> def kick_mojohttpd(self):
> + if self.mojohttpd_is_running:
> + return
> if confman.is_true_bool(('YES_NO', 'RUN_LOCALHOST_GATEWAY',)):
> self.launch_mojohttpd() # Blocks if Terms-Of-Service has
> not been accepted.
> self.mojohttpd_is_running = true
> @@ -956,7 +958,7 @@ class Broker:
> confman.dict['YES_NO']['RUN_LOCALHOST_GATEWAY'] = "yes"
> if foundWxPythonEvent:
> foundWxPythonEvent.set()
> - self.launch_mojohttpd()
> + self.kick_mojohttpd()
> return
> if foundWxPythonEvent:
> foundWxPythonEvent.set()
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> mnet-devel mailing list
> mnet-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mnet-devel
>
--
http://www.arnowaschk.de
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list