Ensure we don't get extraneous signals allocated

This commit is contained in:
Chris Young 2014-04-06 15:24:24 +01:00
parent 1ecd56bd71
commit 9ba0d66c6d
1 changed files with 2 additions and 1 deletions

View File

@ -763,7 +763,7 @@ void ami_openscreen(void)
}
}
screen_signal = AllocSignal(-1);
if(screen_signal == -1) screen_signal = AllocSignal(-1);
LOG(("Screen signal %d", screen_signal));
scrn = OpenScreenTags(NULL,
SA_DisplayID, id,
@ -783,6 +783,7 @@ void ami_openscreen(void)
else
{
FreeSignal(screen_signal);
screen_signal = -1;
if(scrn = LockPubScreen("NetSurf"))
{