diff options
Diffstat (limited to 'src/Ssb')
-rw-r--r-- | src/Ssb/Peer/RPC/Room.hs | 4 |
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 $ () |