aboutsummaryrefslogtreecommitdiff
path: root/lib/app/blockstore.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app/blockstore.ex')
-rw-r--r--lib/app/blockstore.ex6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/app/blockstore.ex b/lib/app/blockstore.ex
index 1523a44..4bef0b5 100644
--- a/lib/app/blockstore.ex
+++ b/lib/app/blockstore.ex
@@ -125,7 +125,11 @@ defmodule SApp.BlockStore do
end
def get(store, hash) do
- GenServer.call(store.pid, {:get, hash, store.prefer_ask})
+ try do
+ GenServer.call(store.pid, {:get, hash, store.prefer_ask})
+ catch
+ :exit, {:timeout, _} -> nil
+ end
end
def copy(store, other_store, hash) do