aboutsummaryrefslogtreecommitdiff
path: root/src/Ssb/Peer
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ssb/Peer')
-rw-r--r--src/Ssb/Peer/RPC/Room.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Ssb/Peer/RPC/Room.hs b/src/Ssb/Peer/RPC/Room.hs
index 0b85414..62dd6dc 100644
--- a/src/Ssb/Peer/RPC/Room.hs
+++ b/src/Ssb/Peer/RPC/Room.hs
@@ -315,7 +315,9 @@ instance RPC.Handler Room where
resp <- getCurrentTime
RPC.writeStreamJSON stream resp
- serve room endpoint@otherwise arg stream = (RPC.notFoundHandlerFunc endpoint) arg stream
+ -- HACK: return OK when endpoint not known to avoid disconnecting clients
+ serve room endpoint@otherwise arg stream = return . return ()
+ --serve room endpoint@otherwise arg stream = (RPC.notFoundHandlerFunc endpoint) arg stream
notifyConnect _ _ = return . return $ ()