Branch: Tag:

2000-04-18

2000-04-18 23:50:37 by Martin Nilsson <mani@lysator.liu.se>

Fixed race in wizards cache.

Rev: server/base_server/wizard.pike:1.118

1:   // Wizard generator   // This file generats all the nice wizards   // Copyright © 1997 - 2000, Roxen IS. - // $Id: wizard.pike,v 1.117 2000/04/03 15:49:30 jonasw Exp $ + // $Id: wizard.pike,v 1.118 2000/04/18 23:50:37 nilsson Exp $      /* wizard_automaton operation (old behavior if it isn't defined):   
789:   object get_wizard(string act, string dir, mixed ... args)   {    act-="/"; -  if(!wizards[dir+act]) wizards[dir+act]=compile_file(dir+act)(@args); -  return wizards[dir+act]; +  object w = wizards[dir+act]; +  if(!w) w = wizards[dir+act] = compile_file(dir+act)(@args); +  return w;   }      int zonk=time();