diff --git a/src/matrix/net/timeout.js b/src/matrix/net/timeout.js index 1e17bc3a..abb7fd9e 100644 --- a/src/matrix/net/timeout.js +++ b/src/matrix/net/timeout.js @@ -15,6 +15,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +import { + AbortError, + ConnectionError +} from "../error.js"; + + export function abortOnTimeout(createTimeout, timeoutAmount, requestResult, responsePromise) { const timeout = createTimeout(timeoutAmount); // abort request if timeout finishes first