Browse Source

fix: break synchronous execution of recursive function (#8772)

pull/8797/head
Anbarasu 5 months ago committed by GitHub
parent
commit
8f7ef4317b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/store/notification.ts

2
packages/nc-gui/store/notification.ts

@ -28,7 +28,7 @@ export const useNotification = defineStore('notificationStore', () => {
unreadCount.value = unreadCount.value + 1 unreadCount.value = unreadCount.value + 1
} }
await pollNotifications() setTimeout(pollNotifications, 0)
} catch (e) { } catch (e) {
// If network error, retry after 2 seconds // If network error, retry after 2 seconds
setTimeout(pollNotifications, 2000) setTimeout(pollNotifications, 2000)

Loading…
Cancel
Save