From 9d8e1e88ec61403659a8cc410d5c4414e3bd3a96 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 26 Sep 2017 17:01:06 +0200 Subject: http-files: max-file-size handling --- plugins/http-files/src/manager.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/http-files/src/manager.vala') diff --git a/plugins/http-files/src/manager.vala b/plugins/http-files/src/manager.vala index 14c190af..b1b7296c 100644 --- a/plugins/http-files/src/manager.vala +++ b/plugins/http-files/src/manager.vala @@ -13,7 +13,7 @@ public class Manager : StreamInteractionModule, Object { public signal void uploaded(FileTransfer file_transfer, string url); private StreamInteractor stream_interactor; - private HashMap max_file_sizes = new HashMap(Account.hash_func, Account.equals_func); + private HashMap max_file_sizes = new HashMap(Account.hash_func, Account.equals_func); private Manager(StreamInteractor stream_interactor) { this.stream_interactor = stream_interactor; @@ -60,7 +60,7 @@ public class Manager : StreamInteractionModule, Object { } } - public int? get_max_file_size(Account account) { + public long get_max_file_size(Account account) { lock (max_file_sizes) { return max_file_sizes[account]; } -- cgit v1.2.3-70-g09d2