fix: stopping the server twice led to inconsistent state

This commit is contained in:
Massimo Melina 2020-05-25 18:15:27 +02:00
parent d2675b9028
commit 2c03f14766
2 changed files with 542 additions and 544 deletions

1084
hfs.drc

File diff suppressed because it is too large Load Diff

View File

@ -5906,7 +5906,7 @@ case event of
// default case // default case
else refreshConn(data); else refreshConn(data);
end;//case end;//case
if assigned(data.session) then if assigned(data) and assigned(data.session) then
data.session.keepAlive(); data.session.keepAlive();
if event in [HE_CONNECTED, HE_DISCONNECTED, HE_OPEN, HE_CLOSE, HE_REQUESTED, HE_POST_END, HE_LAST_BYTE_DONE] then if event in [HE_CONNECTED, HE_DISCONNECTED, HE_OPEN, HE_CLOSE, HE_REQUESTED, HE_POST_END, HE_LAST_BYTE_DONE] then
begin begin