+#include <msp/io/print.h>
#include <msp/net/inet6.h>
#include <msp/net/resolve.h>
#include "client.h"
{
while(!done)
{
- network.event_disp.tick();
+ try
+ {
+ network.event_disp.tick();
+ }
+ catch(const std::exception &e)
+ {
+ IO::print(IO::cerr, "Unhandled exception in network thread: %s\n", e.what());
+ }
for(list<Client *>::iterator i=network.clients.begin(); i!=network.clients.end(); )
{