mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: disconnect the slave and close the connection in case of error in the slave loop
this was done only when there was pool socket (when klauncher was handling slaves) but it has to be done anyway to prevent more tasks (commands) from being send after error occurs Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bc067dbdfa
commit
c1a17d5a30
1 changed files with 2 additions and 0 deletions
|
@ -307,6 +307,8 @@ void SlaveBase::dispatchLoop()
|
|||
}
|
||||
|
||||
if (ret == -1) { // some error occurred, perhaps no more application
|
||||
disconnectSlave();
|
||||
closeConnection();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue