Changeset 4569
- Timestamp:
- 02/10/07 01:48:05 (1 year ago)
- Files:
-
- wire/trunk/wire/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/wire/main.c
r4423 r4569 163 163 } 164 164 165 wi_release(pool);166 pool = wi_pool_init(wi_pool_alloc());165 /* clean up pool after startup */ 166 wi_pool_drain(pool); 167 167 168 168 /* enter event loop */ … … 336 336 337 337 while(wr_running) { 338 if(!pool)339 pool = wi_pool_init(wi_pool_alloc());340 341 338 result = wr_runloop(wr_runloop_sockets, 30.0); 342 339 … … 350 347 } 351 348 352 wi_release(pool); 353 pool = NULL; 349 wi_pool_drain(pool); 354 350 } 355 351 356 if(++i % 100 == 0) { 357 wi_release(pool); 358 pool = NULL; 359 } 352 if(++i % 100 == 0) 353 wi_pool_drain(pool); 360 354 } 361 355
