search: Make sure to clear the timeout

This commit is contained in:
Jasper St. Pierre 2014-09-11 17:40:00 -06:00
parent 7a11964dfb
commit 99c29366ee

View File

@ -481,8 +481,10 @@ const SearchResults = new Lang.Class({
this._cancellable.reset();
if (!terms) {
if (this._searchTimeoutId > 0)
if (this._searchTimeoutId > 0) {
this._searchTimeoutId = 0;
GLib.source_remove(this._searchTimeoutId);
}
return;
}