diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-09-04 17:54:07 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-09-04 17:56:07 +0100 |
| commit | 4fc20b8d7d1dfc2f9973a7c12572a5b021c88f07 (patch) | |
| tree | 26ef30faa9e28f8ff8aa8c2d49960c08597abbf3 /src/remote.hh | |
| parent | 563497ade7ee89af625c3c897d792fe9b71e0992 (diff) | |
Rework client quitting and handling of remote errors
Client quitting no longer immediately unwinds, client is just pushed
for deletion until we get back to the main loop, similarly to what
happens for buffer and window deletion.
Diffstat (limited to 'src/remote.hh')
| -rw-r--r-- | src/remote.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/remote.hh b/src/remote.hh index 27bc5f8a..5740def9 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -12,7 +12,12 @@ namespace Kakoune { -struct peer_disconnected {}; +struct remote_error : runtime_error +{ + remote_error(String error) + : runtime_error{std::move(error)} + {} +}; struct connection_failed : runtime_error { |
