bug 358542 - Fixes calls to nsIStreamLoader to comply with changes in bug 281153. Patch by mvl, r=lilmatt. Branch/trunk mods by lilmatt, r=mvl

This commit is contained in:
mattwillis%gmail.com 2006-10-28 21:02:07 +00:00
Родитель 9cf7eb044f
Коммит e73a7aec9a
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -179,7 +179,12 @@ calICSCalendar.prototype = {
var streamLoader = Components.classes["@mozilla.org/network/stream-loader;1"]
.createInstance(Components.interfaces.nsIStreamLoader);
try {
streamLoader.init(channel, this, this);
if (isOnBranch) {
streamLoader.init(channel, this, this);
} else {
streamLoader.init(this);
channel.asyncOpen(streamLoader, this);
}
} catch(e) {
// File not found: a new calendar. No problem.
this.unlock();