diff options
| author | Alexander Gavrilov | 2012-03-17 20:04:15 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-17 20:04:15 +0400 |
| commit | aa63493bb81160e924382e617ac48431f1fba0c7 (patch) | |
| tree | 7ab8e11aacb27e64466b6991adead9f6a1a62e24 /library/RemoteServer.cpp | |
| parent | 3d80a1ee35be9dcff1e53f74e5be3581c0d42743 (diff) | |
| download | dfhack-aa63493bb81160e924382e617ac48431f1fba0c7.tar.gz dfhack-aa63493bb81160e924382e617ac48431f1fba0c7.tar.bz2 dfhack-aa63493bb81160e924382e617ac48431f1fba0c7.tar.xz | |
Add a ListSquads request.
Diffstat (limited to 'library/RemoteServer.cpp')
| -rw-r--r-- | library/RemoteServer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/RemoteServer.cpp b/library/RemoteServer.cpp index 8c486aff..e12b8b04 100644 --- a/library/RemoteServer.cpp +++ b/library/RemoteServer.cpp @@ -331,7 +331,8 @@ void ServerConnection::threadFn(void *arg) // Cleanup if (fn) { - fn->reset(out_size > 128*1024 || in_size > 32*1024); + fn->reset((fn->flags & SF_CALLED_ONCE) || + (out_size > 128*1024 || in_size > 32*1024)); } } |
