@Override
	public void run() {
		try {
			isRunning = true;

			while (isRunning) {
				Thread.sleep(5L);
				if (network.hasMessageToSend()) {
					writer.write(network.poll(EnumMessageType.SEND).toString() + "\r\n");
				}
			}
		} catch (IOException | InterruptedException e) {
			e.printStackTrace();
		}
	}