Remove existing timeout before creating a new one
This commit is contained in:
parent
676b8d4e7d
commit
92c55c67c2
1 changed files with 1 additions and 0 deletions
|
|
@ -465,6 +465,7 @@ export default class WifiSignalPlusExtension extends Extension {
|
||||||
}
|
}
|
||||||
|
|
||||||
private startRefreshTimer(): void {
|
private startRefreshTimer(): void {
|
||||||
|
this.stopRefreshTimer();
|
||||||
this.refreshTimeout = GLib.timeout_add_seconds(
|
this.refreshTimeout = GLib.timeout_add_seconds(
|
||||||
GLib.PRIORITY_DEFAULT,
|
GLib.PRIORITY_DEFAULT,
|
||||||
REFRESH_INTERVAL_SECONDS,
|
REFRESH_INTERVAL_SECONDS,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue