# HG changeset patch # User Sebastien Decugis # Date 1370516760 -28800 # Node ID 23695957bfc017e41210a97c0d30e6abfb51a4f0 # Parent 8c340f8321274711e3f1fd13129f646685879e01 Don't block on peers shutdown when early errors diff -r 8c340f832127 -r 23695957bfc0 libfdcore/peers.c --- a/libfdcore/peers.c Thu Jun 06 19:05:36 2013 +0800 +++ b/libfdcore/peers.c Thu Jun 06 19:06:00 2013 +0800 @@ -353,6 +353,7 @@ if (!list_empty) { CHECK_SYS( clock_gettime(CLOCK_REALTIME, &now) ); + fd_psm_start(); /* just in case */ TRACE_DEBUG(INFO, "Waiting for connections shutdown... (%d sec max)", DPR_TIMEOUT + 1); wait_until.tv_sec = now.tv_sec + DPR_TIMEOUT + 1; wait_until.tv_nsec = now.tv_nsec;