Fix socket disconnect might interrupt loop issue
Fix socket disconnect might interrupt loop issue

aswathyjacob8/newtest,jccrofty30/hackmd,jackycute/HackMD,aswathyjacob8/newtest,Yukaii/hackmd,jackycute/HackMD,hackmdio/hackmd,PeterDaveHello/hackmd,ironhack/hackmd,ironhack/hackmd,hackmdio/hackmd,PeterDaveHello/hackmd,Rwing/hackmd,jackycute/HackMD,aswathyjacob8/newtest,Yukaii/hackmd,ironhack/hackmd,Yukaii/hackmd,PeterDaveHello/hackmd,jccrofty30/hackmd,jccrofty30/hackmd,Rwing/hackmd,Rwing/hackmd,hackmdio/hackmd