jacksonh / manos

Manos is an easy to use, easy to test, high performance web application framework that stays out of your way and makes your life ridiculously simple.
Other
455 stars 61 forks source link

Loop doesn't get closed, no matter what I do. #140

Closed txdv closed 9 years ago

txdv commented 12 years ago
    var context = Context.Create();
     async = context.CreateAsyncWatcher (() => {
        async.Stop();
        async.Dispose();
        context.Stop();
        context.Dispose();
        Environment.Exit(0);
    });
    async.Send ();
    async.Start();
    context.Start();

Do you have any other suggestions, except a System.Diagnostics.Process.GetCurrentProcess().Kill(), which is kinda pathetic? I mean, why does context have Stop or Dispose at all if it doesn't work, no matter what one does xD