This commit is contained in:
2024-05-15 16:32:42 +02:00
parent d4f041f312
commit 631590e7f9

View File

@ -3,6 +3,7 @@ import {createNotification} from '../utils/noticeUtils.js'
import { lastView, navigateTo } from '../index.js';
import ProfilePageView from '../views/ProfilePageView.js';
import Search from '../views/Search.js';
import { sleep } from '../utils/sleep.js';
export default class Notice {
@ -48,11 +49,9 @@ export default class Notice {
stop() {
if (this._socket) {
try{
this._socket.close();
}
catch (e)
{}
while (this._socket.OPEN)
sleep(100);
this._socket.close()
this._socket = undefined;
}
}